← projects
Raft Consensus Demo
Five nodes agree on a replicated log. They start as followers; a randomized timeout triggers an election; the winner becomes leader and replicates entries via heartbeats, committing once a majority acks. Click a node to crash or restore it and watch Raft recover.
no leader - electing...
followercandidateleadercrashed
Replicated logs
n0
(empty)
n1
(empty)
n2
(empty)
n3
(empty)
n4
(empty)
Event log
- cluster started - waiting for first election timeout