Chapter 19
Leader and Follower
Many replicated systems let one node accept writes (the leader) while others copy it (the followers). This chapter shows how that works, how a new leader is chosen when the old one fails, and how to stop two leaders from existing at once.
Intermediate
4 min2Leader Election and FailoverIntermediate
4 min3Split Brain and FencingAdvanced
4 minChapter quiz
Leader and Follower · 5 questions
1.What is the main reason for having a single leader?
2.Which replication mode risks losing recent writes if the leader crashes?
3.How many failures can a 5-node majority cluster tolerate?
4.Why must a candidate have an up-to-date log to win an election?
5.What does a fencing token let storage do?
0 of 5 answered

