mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36672 from anshulpundir/election
Increase raft ElectionTick to 10xHeartbeatTick
This commit is contained in:
commit
5f17312653
1 changed files with 5 additions and 2 deletions
|
@ -124,8 +124,11 @@ func (n *nodeRunner) start(conf nodeStartConfig) error {
|
||||||
n.cluster.config.Backend,
|
n.cluster.config.Backend,
|
||||||
n.cluster.config.PluginBackend,
|
n.cluster.config.PluginBackend,
|
||||||
n.cluster.config.ImageBackend),
|
n.cluster.config.ImageBackend),
|
||||||
HeartbeatTick: 1,
|
HeartbeatTick: 1,
|
||||||
ElectionTick: 3,
|
// Recommended value in etcd/raft is 10 x (HeartbeatTick).
|
||||||
|
// Lower values were seen to have caused instability because of
|
||||||
|
// frequent leader elections when running on flakey networks.
|
||||||
|
ElectionTick: 10,
|
||||||
UnlockKey: conf.lockKey,
|
UnlockKey: conf.lockKey,
|
||||||
AutoLockManagers: conf.autolock,
|
AutoLockManagers: conf.autolock,
|
||||||
PluginGetter: n.cluster.config.Backend.PluginGetter(),
|
PluginGetter: n.cluster.config.Backend.PluginGetter(),
|
||||||
|
|
Loading…
Reference in a new issue