Raft leader election
Crash the leader, partition the cluster and watch terms and votes.
Break things
- Leader
- none
- Term
- 0
- Votes to win
- 3 of 5
- Clock
- 0 ms
Press Start. The amber ring around each follower is its election timeout, reset by every heartbeat from the leader. Crash the leader and watch the first follower to time out ask for votes. Crash three nodes and nobody can reach a majority.
Simplified for clarity: messages arrive instantly and logs are left out. Real Raft also refuses to vote for a candidate whose log is behind the voter's.
What just happened
Press Start to begin the first election.