Raft
Core Facts
Raft decomposes the consensus problem into three subproblems: Leader Election, Log Replication, and Safety
The Raft algorithm was designed to prioritize understandability compared to Paxos
In a Raft cluster, every node is in one of three states at any given moment
Timeline (last 90 days)
Raft is widely adopted by systems such as etcd and TiKV.
Raft is a consensus algorithm for managing a replicated log that, through leader election, log replication, and safety constraints, enables multiple nodes to agree on the same state machine even under partial failures.
In distributed Blob storage based on SQLite, Raft is typically not used to replicate the Blob data itself, but to maintain metadata such as shard mappings, node membership, leases, and version numbers.
etcd implements strong consistency based on the Raft consensus algorithm, ensuring that the cluster can still read and write normally as long as a majority of nodes are alive.
Raft guarantees strong consistency (linearizable reads and writes), while high availability depends on a majority of nodes being alive: when the cluster loses a majority of nodes, etcd rejects writes to protect consistency, which is a typical CP choice in the CAP trade-off.
Raft and Paxos have similar goals but Raft is easier to implement in engineering, and etcd's raft library is reused by many projects.
At any given moment, at most one Leader in a Raft cluster accepts write requests; the Leader replicates the operation as log entries to a majority of nodes and returns success only after it is committed.
Raft is a consensus algorithm designed for understandability, managing the replicated log through three subproblems: leader election, log replication, and safety constraints.
Early versions of rqlite ran a SQLite instance directly on each node and replicated SQL statements via Raft, but this approach had performance bottlenecks: all write operations had to be serialized through the leader node, and SQL statement replication could produce nondeterminism.
Systems such as etcd, Consul, and TiKV all use the Raft consensus algorithm.
28 more timeline events
All Facts (20)
Every write operation to etcd goes through Raft log replication where the Leader receives the request, replicates to a majority of Followers, and returns success after confirming the commit
90%UnverifiedRaft's authors Diego Ongaro and John Ousterhout stated that algorithm understandability should be the primary design goal
90%UnverifiedDiego Ongaro proposed Raft in his 2014 doctoral dissertation, with user studies demonstrating Raft is significantly easier to understand and teach than Paxos
90%UnverifiedIn production systems, tuning election timeouts and heartbeat intervals directly affects failure recovery time, typically ranging from hundreds of milliseconds to a few seconds
80%Partially VerifiedRaft decomposes the consensus problem into three subproblems: Leader Election, Log Replication, and Safety
65%Partially VerifiedThe Raft algorithm was designed to prioritize understandability compared to Paxos
65%Partially VerifiedIn a Raft cluster, every node is in one of three states at any given moment
65%Partially VerifiedHashiCorp's Consul uses Raft to achieve consistency in service discovery and configuration management
65%Partially Verifiedetcd is the core data store for Kubernetes and uses Raft to guarantee strong consistency of cluster configuration data
65%UnverifiedRaft is a distributed consensus algorithm proposed in 2014 by Diego Ongaro and John Ousterhout, designed to be an understandable alternative to Paxos.
60%UnverifiedIn distributed Blob storage based on SQLite, Raft is typically not used to replicate the Blob data itself, but to maintain metadata such as shard mappings, node membership, leases, and version numbers.
50%UnverifiedRaft is a consensus algorithm for managing a replicated log that, through leader election, log replication, and safety constraints, enables multiple nodes to agree on the same state machine even under partial failures.
50%UnverifiedRaft is widely adopted by systems such as etcd and TiKV.
50%UnverifiedRaft and Paxos have similar goals but Raft is easier to implement in engineering, and etcd's raft library is reused by many projects.
50%UnverifiedRaft is a consensus algorithm designed for understandability, managing the replicated log through three subproblems: leader election, log replication, and safety constraints.
50%UnverifiedAt any given moment, at most one Leader in a Raft cluster accepts write requests; the Leader replicates the operation as log entries to a majority of nodes and returns success only after it is committed.
50%UnverifiedRaft guarantees strong consistency (linearizable reads and writes), while high availability depends on a majority of nodes being alive: when the cluster loses a majority of nodes, etcd rejects writes to protect consistency, which is a typical CP choice in the CAP trade-off.
50%Unverifiedetcd implements strong consistency based on the Raft consensus algorithm, ensuring that the cluster can still read and write normally as long as a majority of nodes are alive.
50%UnverifiedEarly versions of rqlite ran a SQLite instance directly on each node and replicated SQL statements via Raft, but this approach had performance bottlenecks: all write operations had to be serialized through the leader node, and SQL statement replication could produce nondeterminism.
50%UnverifiedWhen a network partition occurs, the majority side of a Raft system elects a new leader, and the partition containing the old leader cannot commit new log entries because it cannot obtain a majority vote, thereby avoiding split-brain.
50%