Quorums: Overlapping Groups for Distributed Agreement
📑 On this page
- A concrete example: five-node election
- Majority quorum
- Why overlap matters
- Failure tolerance
- Failure domains
- Read and write quorums
- Example with three replicas
- Strong versus eventual behavior
- Write-heavy choice
- Read-heavy choice
- Latency
- Geographic quorum design
- Flexible quorums
- Stragglers
- Minority partitions
- Witnesses
- Even versus odd group sizes
- Dynamic membership
- Read repair
- Quorum loss
- Knowledge check
- The one idea to remember
A distributed system does not always need every node to respond.
Waiting for all nodes makes one slow or failed participant block progress. Accepting one response may allow conflicting decisions.
A quorum is a sufficiently large subset whose overlap with other valid subsets preserves required knowledge.
The required size depends on the protocol and guarantee.
A concrete example: five-node election
Five nodes vote in a consensus group.
Any three form a majority. Two different groups of three must share at least one node.
That overlap prevents two disjoint sides from each electing a leader in the same term.
Majority quorum
For N voting nodes, a majority is:
floor(N / 2) + 1Examples:
- 3 nodes -> 2,
- 5 nodes -> 3,
- 7 nodes -> 4.
The minority cannot make progress alone.
Why overlap matters
Suppose one quorum commits a value.
Every later quorum overlaps it, so at least one participant can carry knowledge of that value into the next decision.
Protocols add rules ensuring the overlap's knowledge is respected.
Failure tolerance
A majority group with 2f + 1 nodes tolerates f unavailable nodes while retaining quorum.
Three nodes tolerate one. Five tolerate two.
Adding one node from three to four does not increase majority failure tolerance in the same way and can increase quorum size.
Failure domains
Node count is useful only when nodes fail independently.
Three voters in one availability zone can all fail together. Spread quorum participants across meaningful power, rack, zone, or region boundaries.
Network placement also affects latency.
Read and write quorums
Some replicated stores define:
N: replicas,W: write acknowledgments,R: read responses.
If:
W + R > Nread and write groups overlap under the model.
Example with three replicas
For N = 3:
W = 2,R = 2.
A successful write reaches two replicas, and a read consults two. At least one read response should know the write.
Version comparison is still needed to choose the newer value.
Strong versus eventual behavior
Quorum overlap alone does not guarantee linearizability.
Implementation details matter:
- concurrent writes,
- clocks,
- sloppy quorums,
- read repair,
- conflict resolution,
- and failure detection.
Do not infer guarantees from one equation without the full protocol.
Write-heavy choice
A lower W reduces write latency and increases write availability.
It can increase risk of data loss or stale reads depending on replication and repair.
Business operations requiring durable commitment need stronger rules.
Read-heavy choice
A lower R makes reads faster.
A single replica may be stale. Session consistency, primary reads, or version tokens can improve important user paths.
Tunable consistency lets clients select stronger reads for sensitive operations.
Latency
Quorum response time is determined by enough fastest participants, not necessarily all.
Cross-region quorum adds geographic delay. Place voters according to durability and latency goals.
One slow node can be tolerated until enough others also slow.
Geographic quorum design
Node placement decides both failure tolerance and write latency.
A five-node group split across three regions may survive a regional loss, but every commit waits for a majority path. Some systems place a majority near the primary region and use non-voting remote replicas; others accept higher latency for stronger regional survival.
The correct layout follows recovery objectives and partition behavior.
Flexible quorums
Some protocols allow read and write groups other than simple majorities while preserving required intersection.
Flexible designs can reduce latency for one operation class, but failure analysis becomes less intuitive. Document which quorum pairs must overlap and test every supported topology change.
Stragglers
The coordinator can proceed after quorum and allow slow replicas to catch up.
Persistent stragglers reduce failure margin. If one node is always behind, the group technically has five nodes but effectively less healthy redundancy.
Monitor readiness, not only membership.
Minority partitions
During a partition, only a side with quorum can continue consensus operations.
The minority may serve stale reads under policy but cannot safely commit conflicting writes.
This is an availability tradeoff in favor of agreement.
Witnesses
A witness may vote without storing full data.
It can help form quorum but does not provide a complete recovery copy or read capacity.
Understand what each participant contributes before counting it as redundancy.
Even versus odd group sizes
Odd voter counts often provide better fault-tolerance efficiency.
Four nodes require three for majority and tolerate one unavailable, like three nodes requiring two. The fourth can add distribution but not another majority failure.
Non-voting replicas can add reads or backup without changing quorum.
Dynamic membership
Changing members changes valid quorum sets.
Safe protocols use staged or joint configuration so old and new groups overlap during transition.
Removing nodes casually can create two groups that both think they have authority.
Read repair
A quorum read can discover one stale replica.
The system may:
- return the latest version,
- update stale replicas in the background,
- or schedule repair.
Repair is part of convergence, not a substitute for correct commit rules.
Quorum loss
When quorum is unavailable, operations requiring agreement stop.
Recovery may involve:
- restore node communication,
- replace failed nodes,
- or perform controlled membership change.
Forcing a new quorum without understanding old state can create conflicting histories.
Knowledge check
- Why must two majority quorums overlap?
- How many failures can a five-node majority group tolerate?
- What does
W + R > Nprovide under its model? - Why is quorum size insufficient without failure-domain placement?
- What does a witness fail to provide?
The one idea to remember
Quorums let distributed systems proceed without every node while ensuring valid decision groups overlap. Node health, placement, version rules, protocol semantics, and controlled membership determine whether that overlap becomes a real consistency guarantee.