What Is a Quorum? Majorities and Overlap
Overview
A quorum is the minimum number of nodes that must take part in an operation, such as a vote or a write, for it to be valid. Most often it means a majority: more than half.
You already used this idea when electing a leader. Here you learn why it works and how many failures it can survive.
Detailed Notes
What is a quorum
When several copies of data or several voters exist, you do not wait for all of them. You wait for a quorum, usually a majority: more than half of the nodes.
Majority of N nodes = floor(N / 2) + 1.
- 3 nodes: majority is 2
- 5 nodes: majority is 3
- 7 nodes: majority is 4
The problem it solves
Two bad options exist. If you need every replica to respond, one down machine blocks everything. If you need only one, two sides of a network split can each accept a different answer and the system disagrees with itself (the split brain from the previous chapter).
A majority sits in the middle: the system keeps working when a few nodes fail, and it cannot make two conflicting decisions.
How it works
The magic property: any two majorities share at least one node. Each has more than half of the nodes, so together they would exceed N unless they overlap.
That shared node is the safety net. Suppose a write was confirmed by a majority. Any later majority read or vote includes at least one node that saw that write, so the latest committed value cannot be silently missed.
How many failures can you survive? Up to N minus majority:
| Nodes (N) | Majority | Failures tolerated |
|---|---|---|
| 3 | 2 | 1 |
| 4 | 3 | 1 |
| 5 | 3 | 2 |
| 7 | 4 | 3 |
This is why clusters are usually odd: 4 nodes tolerate no more failures than 3, so the fourth node costs money for nothing. A 2-node cluster is even worse: losing either node leaves just one, which is not a majority of two, so everything halts. Typical sizes are 3, 5 or 7. More nodes means more coordination, so do not add them beyond need.
Count independent failure domains, not just nodes. Three nodes in the same rack share one power cable, so one failure takes all three. Spread them over racks, zones or data centres.
A simple example
A committee of 5 votes on a decision. It passes when 3 members agree. Even if two members are on holiday, the committee still decides. If the committee splits into a group of 3 and a group of 2 in separate rooms, only the group of 3 can pass anything, so there are never two conflicting decisions.
System design example
A team runs a configuration store on 3 nodes across 3 availability zones. A change is accepted when 2 of 3 nodes confirm. When one zone has an outage, the other two still form a majority, so changes continue, and the third node catches up when it returns. Had the team chosen a 2-node cluster, losing either node would have halted all changes. Systems such as etcd, a small store used for cluster configuration, work exactly this way with 3 or 5 members.
Summary
- A quorum is the minimum number of nodes needed; usually a majority (more than half).
- Any two majorities overlap in at least one node, which prevents conflicting decisions.
- N nodes tolerate N minus majority failures: 3 tolerate 1, 5 tolerate 2, 7 tolerate 3.
- Use odd sizes and spread nodes across failure domains.
Architecture Diagram
Any two majorities share at least one node.
- 1The client sends a write to the coordinator.
- 2The coordinator sends it to all three replicas.
- 3Two replicas acknowledge, forming a majority.
- 4The coordinator confirms success; the third replica catches up later.
Common Interview Questions
Finished this lesson?
0 of 91 lessons done · 0% of the course

