In this lesson · topic 7 of 7
Topic 7
Check votes, logs and quorums
4 min read
Predict first
Predict first
Predict first
Take away
- Terms plus one vote per node per term give at most one leader per term. Majorities overlap, so a new leader always holds every committed entry.
- A write is committed only when a majority has it and the leader says so. Followers never decide commits.
- A cut-off leader can append but not commit. Its orphaned entries are discarded on heal, and that is correct because no client was told they were durable.
Sources
- Diego Ongaro and John Ousterhout, In Search of an Understandable Consensus Algorithm, USENIX Annual Technical Conference, 2014.
- Leslie Lamport, Paxos Made Simple, 2001.
- Michael J. Fischer, Nancy A. Lynch and Michael S. Paterson, Impossibility of distributed consensus with one faulty process, Journal of the ACM, 1985.
- Leslie Lamport, Time, clocks, and the ordering of events in a distributed system, Communications of the ACM, 1978.