← 🌐 Networks

🗳️ Raft Cluster

Leader:
Term: 0
Committed entries: 0
Cluster quorum:
FPS:
Drag — rotate · Scroll — zoom · Click a node — kill / revive it

🗳️ Raft Consensus Simulator

A cluster of five simulated servers arranged in a ring elects a leader, replicates a growing log, and keeps agreeing on the same sequence of commands even as you crash nodes and cut the network.

🔬 What It Demonstrates

Leader election via randomized timeouts and majority voting, log replication through AppendEntries messages, and the quorum rule that lets a 5-node cluster survive up to two simultaneous failures without losing data.

🎮 How to Use

Click any node to crash or revive it, kill the leader outright, split the network into a 3/2 partition, propose new client writes, and tune election timeout and latency to see how they change election speed and stability.

💡 Did You Know?

Raft was designed in 2014 specifically to be more understandable than Paxos while offering the same fault-tolerance guarantees, and it now powers etcd, Consul, CockroachDB and countless other production systems.