Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. Agreeing when nodes fail
  2. 2. Elections, terms and the log
  3. 3. Crash the leader and cut the cluster
  4. 4. The leader nobody follows
  5. 5. Walking a follower's log back to the leader's
  6. 6. Adding two nodes without ever having two majorities
  7. 7. Check votes, logs and quorums

Topic 7

Check votes, logs and quorums

4 min read

Predict first

Why can two nodes never both be leader in the same term?

Predict first

A node restarts after a long outage and runs for election. Why does it not win and wipe out committed entries?

Predict first

A cluster of five has three nodes down. A client sends a write to the one node that still calls itself leader. What happens?

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

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms