Two etcd Members Tolerate No More Failures Than One, So Go from One Control Plane to Three

In progress Kubernetes

etcd stores the whole cluster state and uses Raft: a write is committed only when a majority of members, ⌊n/2⌋+1, agree. With stacked control planes (kubeadm's default), each control plane runs one etcd member, so the control-plane count decides how many machines can fail.

Members Quorum Failures tolerated
1 1 0
2 2 0, and either machine can cause it
3 2 1
5 3 2

Two members are worse than one: still no failure tolerated, with twice the hardware that can break quorum. Even numbers in general add a machine without adding tolerance.

Growing a Cluster

References

Review cards

Flashcard How many failures do 1, 2 and 3 etcd members tolerate, and why?

0, 0 and 1. A write needs a majority (⌊n/2⌋+1): 1 of 1, 2 of 2, 2 of 3.

Quiz A cluster has one stacked control plane. What is the safest way to grow it?
  • Add one control plane now, a second one next month
  • Add the second and third on the same day, after an etcd snapshot
  • Add a fourth to have a spare
  • Convert workers to control planes one at a time

With two members, quorum needs both machines, so the third should follow right away; the snapshot covers a join that fails. A fourth member adds no tolerance over three.

Flashcard Why do three etcd members still not replace backups?

They replicate every write, including a mistaken delete. Only snapshots let you go back in time.