-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local restore of LocalScope drivers such as bridge and host driver #461
Comments
@mavenugo, thanks. I believe I can just wait for boltdb backend and keep going implementing libnetwork |
@chenchun I am making some changes and testing it.. will share the branch shortly. |
@chenchun here is the branch with my changes.. https://github.com/sanimej/libkv/tree/boltdb I will be making some additional changes. But you can started with the libnetwork integration. |
@sanimej Thanks. From a design standpoint, we were thinking of keeping it simple, by having 2 libkv stores (one for |
I'm not started too. Yes, I planned to keep two objects of libkv stores. I'll think about it and post my idea here. |
@chenchun Thanks |
@sanimej, thanks for providing the branch. |
@chenchun can you please share the design ? Also, the local-scope persistence is of priority for other issues that we are seeing. Is this something that you can handle soon ? |
Sorry for the delay. My design is as below Add a
I didn't see the endpoints are restored after restart daemon restart. Does restoring endpoints have to include in? |
@chenchun thanks. The design is inline with my thought process as well.
Well, we depend on |
OK, I will make a PR when I go to the office shortly. |
@chenchun I noticed an issue with AtomicPut.. I am in the process of committing a change. You can pick it up once its in for your integration. |
Just to be clear, the libkv side changes are being tracked under docker/libkv#46 |
I've took a look at the current store/datastore usage in libnetwork code base. I think libkv is mainly used for service discovery of
GlobalScope
network such as overlay and remote driver.In order to implement docker daemon hot upgrade moby/moby#13884, lots of states of bridge driver like ip/port need to be preserved and recovered from data store after restart of daemon. And I think its inappropriate to use etcd/consol/zookeeper to store the states of
LocalScope
drivers.I propose to add a new backend like leveldb to libkv so that we can use two kinds of state store to persist states of both
GlobalScope
andLocalScope
driver.@abronan @mavenugo WDYT?
The text was updated successfully, but these errors were encountered: