On clusterLeave, notify only if there are peers#1713
On clusterLeave, notify only if there are peers#1713sanimej merged 1 commit intomoby:masterfrom aboch:nse
Conversation
|
Is the error Single node clusters are unlikely in real deployments and IMO, we shouldn't optimize for that. |
|
I see your point, for clusters. There sure are cases where a user might be using a single node swarm for feature development or testing. For those cases, I do not think the current is an acceptable behavior, considering this would delay things like |
BTW, we are planning to change swarm mode to default to "on" in the future. The purpose will be to make features like services and secrets available without needing to run a special command first. This will make single-node installations very common. |
|
@aaronlehmann thats a good point. |
|
Is it possible to get this in for 17.05? It would be great to avoid the extra delay for graceful shutdowns. |
|
@aboch |
- Otherwise operation will unnecessarely block for five seconds. - This is particularly noticeable on graceful shutdown of daemon in one node cluster. Signed-off-by: Alessandro Boch <aboch@docker.com>
|
Updated. PTAL. |
|
LGTM |
for five seconds.
shutdown of daemon in one node cluster.
Related to moby/moby/issues/32446