etcd/raft failover cut from 1.25 s to 343 ms, verified on 2,000 simulated leader crashes
A developer sought to shorten leader failover in a three-node etcd/raft cluster, where survivors previously waited 1 to 1.9 seconds before electing a new leader and no writes committed meanwhile. Lowering ElectionTick is a one-line change, but its effects under crashes and dropped links were unclear, so the developer tested it with faultline, a deterministic simulation tool for Go. In a 500-seed run with faults, the lower setting caused no safety violations and the cluster always recovered. A separate failover test, which crashes the leader at five seconds across 2,000 simulated runs, measured the new leader election time. The source article's headline reports the improved failover at 343 ms, while the excerpt shows an initial failure on one seed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in