Flexible Paxos
In plain English
Plain definition
A refinement of Paxos proving that leader-election quorums and replication quorums only need to intersect each other, not themselves, allowing asymmetric and smaller quorum sizes for writes.
Classical Paxos safety proofs rely on the invariant that any two quorums (of acceptors) must intersect, which is traditionally satisfied by requiring all quorums to be strict majorities. Flexible Paxos (Howard, Schwarzkopf, Madhavapeddy, Crowcroft, 2016) revisits the safety argument and shows the actual requirement is weaker: every Phase 1 quorum must intersect every Phase 2 quorum, but two Phase 2 quorums need not intersect each other. This is because Phase 1’s role is solely to discover the highest-numbered accepted value before a new leader proposes; if that guarantee holds, Phase 2 can use disjoint quorum sets across different proposal rounds without introducing conflicting decisions.
The practical consequence is that system designers can decouple the quorum size used for leader election from the quorum size used for steady-state replication. The rule is |Q1| + |Q2| > N. As an illustration only, with N=5 a Phase 2 quorum of 2 nodes can be paired with a Phase 1 quorum of 4 nodes during leadership changes, which are comparatively rare. Leader election then tolerates only one failure, so this trades reduced availability and higher cost during leader failover for lower latency during normal-case writes — the operation executed far more frequently in production systems.
- Grid Quorums / WPaxos: Flexible Paxos underpins geo-distributed consensus protocols like WPaxos, which partition the acceptor set into groups and route object ownership dynamically, using Flexible Paxos quorum rules to reduce cross-region round trips for objects with local access locality.
- Quorum asymmetry hazards: Because Phase 2 quorums are no longer guaranteed to intersect, safety still depends on every Phase 1 quorum intersecting every Phase 2 quorum — ballot ordering works together with that intersection, it does not replace it.
- Reconfiguration complexity: Any online quorum resizing (adding/removing acceptors) must still preserve the Phase1/Phase2 intersection invariant across the transition, which is significantly harder to reason about than uniform-majority Paxos and is a common source of subtle correctness bugs in custom implementations.
Most production consensus systems (etcd/Raft, Consul, ZooKeeper’s ZAB) still use uniform majority quorums because the engineering complexity of asymmetric quorums is rarely justified outside of geo-replicated, latency-sensitive, or extremely large acceptor-set deployments. Flexible Paxos is primarily relevant when designing custom consensus layers for wide-area storage systems, multi-region metadata stores, or research into leaderless/multi-leader Paxos variants, where the cost asymmetry between leader-election and steady-state replication becomes economically significant.
Legacy Reference
https://arxiv.org/abs/1608.06696About this page
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Recommended reading
More from KBY that goes with this term.
Education ITSix DfE core technology standards are due by 2030, but filtering and monitoring are due now
10 min read
