Closed albamc closed 7 years ago
@@ master #39 diff @@
==========================================
Files 13 13
Lines 196 196
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 190 190
Misses 4 4
Partials 2 2
Powered by Codecov. Last update 290a2a8...a72ac64
Happy new year! I'll get back to it as soon as I'm back to civilzation, which is tomorrow!
Hey, just added a few comments – could you also please rebase this PR so I could merge it?
You also need to add libkv to glide deps list.
Hey - sorry, I meant just adding dependencies to the glide.yaml
file, not actually vendoring them =) The test script will automatically glide up
to download everything when needed.
[EDIT]: actually, I take that back - forgot that we landed the standalone repo PR recently.
@kobolog I did rebase. In local environment, build is find but in travis, build fails even if I modify glide configs. If I add a vendor, it'll be fine but I do not know what you want to do. What should I to do before merge ?
Hey, yeah - I added an edit to my previous comment about not vendoring stuff stating that I take it back, sorry about that. According to Travis, this is the symptom:
core/store.go:11:2: cannot find package "github.com/docker/libkv" in any of:
/home/travis/gopath/src/github.com/kobolog/gorb/vendor/github.com/docker/libkv (vendor tree)
/home/travis/.gimme/versions/go1.7.linux.amd64/src/github.com/docker/libkv (from $GOROOT)
/home/travis/gopath/src/github.com/docker/libkv (from $GOPATH)
So I yeah your inital move to vendor the dependencies was the right one – let's vendor the dependencies required for this PR and then I'll merge this PR.
@kobolog I added the source for the build to the vendor. It was a little hard to git rebase for me :( I am sorry that the commit message is not written well in the rebase process.
Great, thank you! I'm going to merge it now.
@kobolog Thanks~
What I did
Currently, gorb stores L4 data only in memory, so all data is initialized when gorb is restarted. This PR saves the service / backend information generated by gorb to external kvstore (ex. Consul, etcd, zookeeper, boltdb) by using libkv and periodically reads this data and synchronizes it with gorb so that L4 data is retained even if gorb is restarted. I think that merge this PR can solve the following issues.
33 #30
How I did
How to test it
What to do
Added Options
Happy new year~