-
Notifications
You must be signed in to change notification settings - Fork 680
Peer list persistence #2305
Peer list persistence #2305
Conversation
|
A side effect of the reversion of #1967 is that |
Though based on #2186 the intended semantics of |
router/network_router.go
Outdated
| peers = storedPeers | ||
| } else { | ||
| log.Println("Initial set of peers:", peers) | ||
| if _, err := os.Stat("/restart.sentinel"); err == nil { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
It seems rather inconvenient that re-launching the router clears the persisted peer list. It makes all changes to the configuration, e.g. changing the log level, lossy. Upgrades per #2303 are just a special case of that. Perhaps we need another variant (or flag) for |
|
strawman A: Add
Downside: This is a change in the current behaviour of strawman B: make Downside: This is still a change in current behaviour for the nil command line peer list case. It is also inconsistent with the strawman C: Downside: Having a |
ad1a039 to
17857cd
Compare
|
@rade I think I would prefer |
88fd45d to
f50ff01
Compare
|
CC @abuehrle doc change |
| host# weave connect --replace $NEW_HOST1 $NEW_HOST2 | ||
|
|
||
| If Weave Net is restarted by Docker it will automatically remember any | ||
| previous connect and forget operations, however if you stop it |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
6468e1b to
8dfa320
Compare
weave
Outdated
| deprecation_warnings "$@" | ||
| check_not_running router $CONTAINER_NAME $BASE_IMAGE | ||
| check_not_running proxy $PROXY_CONTAINER_NAME $BASE_EXEC_IMAGE | ||
| # Don't check the plugin here, since we start it with `--restart=always` |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
LGTM apart from one comment. I guess we should note in the description the breaking change that |
8dfa320 to
37f5a17
Compare
Fixes #2186.
Breaking change:
weave launchis no longer idempotent (for inclusion in release notes).