In search of an understandable consensus algorithm

Diego Ongaro, John K. Ousterhout

2014 · 1.5K citations · 27 references

Concepts

TL;DR

Raft is a consensus algorithm for managing a replicated log. Raft improves understandability by separating consensus components—leader election, log replication, and safety—and enforcing stronger coherency to reduce state space, while also providing a membership‑change mechanism that uses overlapping majorities to guarantee safety. User studies show that Raft, which is equivalent to and as efficient as Paxos yet structurally different, is easier for students to learn and provides a more understandable foundation for practical systems.

Abstract

Raft is a consensus algorithm for managing a replicated log. It produces a result equivalent to (multi-)Paxos, and it is as efficient as Paxos, but its structure is different from Paxos; this makes Raft more understandable than Paxos and also provides a better foundation for building practical systems. In order to enhance understandability, Raft separates the key elements of consensus, such as leader election, log replication, and safety, and it enforces a stronger degree of coherency to reduce the number of states that must be considered. Results from a user study demonstrate that Raft is easier for students to learn than Paxos. Raft also includes a new mechanism for changing the cluster membership, which uses overlapping majorities to guarantee safety.

References

27