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
Swarm: Missing heartbeat-tick
and election-tick
configurable flags on docker swarm init
and join
#24941
Comments
This one is a bit tricky because of the Manager/Worker role decomposition: First we can't use dynamic Spec updates for that, because We can add the flags to However we'd also have to add those flags to Not sure what is the best way to proceed on this one. We can put the flag on WDYT? |
is this related to #24557 ? |
I'm making this a higher priority; while testing some scenarios with RC4 and current master, I consistently ended up in a situation where all containers landed on a single node. I briefly discussed this with @cpuguy83 and it looks like Swarmkit is acting too quickly if the recovering time is taking too long (as mentioned, for me it was consistently reproducible). Possibly, setting a longer duration can prevent this situation. I put my steps in a gist, but can open a separate issue if you think it makes more sense Making this a higher priority, but open to suggestions (perhaps I'm doing it wrong 😄) |
ping @tiborvass @vieux FYI ^^ |
@thaJeztah Or for some reason the new leader didn't have proper node state when it took leadership. |
@thaJeztah No it's not related to #24557 (I would say that it's complementary). I'm not sure the issue you describe is related either, the |
The problem with those flags being at swarm init time is they cannot be changed - ever - unless you nuke the cluster. There are a few options:
|
opened #25017 |
docker master
--heartbeat-tick
and--election-tick
flags to configure Raft election and heartbeat timeouts are missing from the command-line.As of now, we bootstrap Managers using the default values (
3s
for election and1s
for heartbeats).We should include the flags to allow custom values.
The text was updated successfully, but these errors were encountered: