With three replicas and majority quorums, how many failures can reads and writes survive?
Sketch your own answer first, then compare it with the one below.
A strong answer
A majority of three is two. Reads and writes each need two replicas, so both keep working with one replica down. With two replicas down, neither can proceed.
A majority quorum also satisfies the overlap rule: two plus two is four, which is more than three. In general a majority quorum tolerates a minority of failures, so N=5 tolerates two, and N=2f+1 tolerates f.
Even numbers buy nothing. Four replicas need a majority of three and still tolerate only one failure, the same as three replicas, while costing more.
Sources
- David Gifford (1979). Weighted Voting for Replicated Data.
- Martin Kleppmann (2017). Designing Data-Intensive Applications.