[Paper Review] Flexible Paxos: Quorum intersection revisited
This paper introduces Flexible Paxos (FPaxos), a generalization of the Paxos consensus algorithm that relaxes the requirement for quorums within the same phase to intersect, allowing disjoint quorums in phases 1 and 2 as long as they intersect across phases. The key contribution is that this relaxation enables improved performance and availability trade-offs, such as reducing second-phase quorum sizes to improve latency and throughput, while maintaining safety through careful quorum design.
Distributed consensus is integral to modern distributed systems. The widely adopted Paxos algorithm uses two phases, each requiring majority agreement, to reliably reach consensus. In this paper, we demonstrate that Paxos, which lies at the foundation of many production systems, is conservative. Specifically, we observe that each of the phases of Paxos may use non-intersecting quorums. Majority quorums are not necessary as intersection is required only across phases. Using this weakening of the requirements made in the original formulation, we propose Flexible Paxos, which generalizes over the Paxos algorithm to provide flexible quorums. We show that Flexible Paxos is safe, efficient and easy to utilize in existing distributed systems. We conclude by discussing the wide reaching implications of this result. Examples include improved availability from reducing the size of second phase quorums by one when the number of acceptors is even and utilizing small disjoint phase-2 quorums to speed up the steady-state.
Motivation & Objective
- To address the conservative nature of traditional Paxos, which enforces intersecting quorums within each phase, even when only cross-phase intersection is necessary for safety.
- To demonstrate that quorum intersection is only required between phases, not within them, thereby relaxing a long-standing assumption in Paxos.
- To enable practical performance improvements in distributed systems by allowing smaller, non-intersecting second-phase quorums, reducing latency and network load.
- To provide a safe, efficient, and backward-compatible generalization of Paxos that can be incrementally adopted in existing systems.
- To explore new system design opportunities through dynamic and flexible quorum selection, including grid quorums and simple quorum systems.
Proposed method
- Propose Flexible Paxos (FPaxos) as a generalization of Paxos that only requires intersection between phase-1 and phase-2 quorums, not within each phase.
- Define quorum systems where phase-1 and phase-2 quorums can be disjoint, provided they intersect across phases to preserve safety.
- Introduce the concept of 'simple quorums'—reducing second-phase quorum size at the cost of increasing first-phase quorum size—enabling lower latency in steady state.
- Use a TLA+ formal specification and model checking to verify the safety of FPaxos under the new quorum intersection rules.
- Design and evaluate a naïve implementation of FPaxos to demonstrate its practical benefits in real-world workloads.
- Propose dynamic quorum selection strategies that adapt quorum sizes over time based on system conditions and failure tolerance needs.
Experimental results
Research questions
- RQ1Can the safety of Paxos be preserved if quorums within the same phase are allowed to be disjoint, as long as quorums from different phases intersect?
- RQ2What performance and availability trade-offs arise when reducing the size of second-phase quorums in consensus protocols?
- RQ3How can quorum systems be designed to minimize quorum size while maintaining fault tolerance and safety in distributed consensus?
- RQ4To what extent can existing Paxos-based systems be extended with FPaxos to improve steady-state performance without sacrificing safety?
- RQ5Can dynamic quorum selection strategies be used to balance availability and performance in production systems?
Key findings
- Flexible Paxos is formally proven safe using TLA+ model checking, confirming that quorum intersection is only required across phases, not within them.
- In a 10-node system, FPaxos allows second-phase quorums to be reduced to just 3 nodes, improving latency and throughput, at the cost of requiring 8 nodes in the first phase during leader recovery.
- When the number of acceptors is even, FPaxos enables reducing the second-phase quorum size by one compared to traditional Paxos, improving performance without increasing failure tolerance.
- Grid quorum systems can be used to reduce quorum sizes in both phases, enabling smaller quorums while maintaining fault tolerance and safety.
- The use of disjoint phase-2 quorums allows for better utilization of participants and reduced network load, improving steady-state throughput.
- The proposed generalization is orthogonal to existing Paxos variants and can be integrated into production systems to further enhance performance and scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.