Introduction
State Machine Replication (SMR) is the backbone of fault-tolerant distributed systems, ensuring that multiple replicas maintain a consistent state despite failures. Historically, SMR protocols like Paxos and Raft have been designed under the assumption of "partial synchrony"—a model where network delays are unpredictable and coordination requires heavy quorum-based acknowledgments.
Chora challenges this status quo. By leveraging modern data center technologies such as kernel-bypass networking and precision clock synchronization, Chora implements a "strong synchrony" model. This allows replicas to operate in tight, deterministic rounds, achieving massive throughput improvements by treating network stability as a primary performance driver rather than a mere liveness condition.
The Synchrony Gap in Modern Data Centers
Traditional distributed systems are "pessimistic" about the network. They assume high jitter and unpredictable latency, leading to protocols that require explicit leader-to-follower acknowledgments for every proposal. In multi-leader systems, this often results in complex dependency tracking or slot contention.
However, the environment within modern data centers has changed. Technologies like the Data Plane Development Kit (DPDK) and the Precision Time Protocol (PTP) have made sub-microsecond network stability a reality. Chora fills the gap between this hardware capability and protocol design, moving away from reactive coordination toward a proactive "pulsing" model.
System Architecture and Methods
Chora's performance stems from a co-design of the network stack and the replication protocol.
Multi-threaded Execution
To maintain deterministic timing, Chora isolates the replication logic from application-level variability. The system employs a dedicated Protocol Thread to handle the high-frequency "pulsing" of rounds, while a separate Service Thread manages client requests.
Communication between these threads is handled via lock-free ring buffers, preventing the "jitter" of client request processing from interfering with the tight timing requirements of the replication rounds.
The Chora Round Model
Chora divides time into discrete logical rounds. Unlike traditional synchronous models that stall for the slowest participant, Chora introduces a "slack" mechanism. A node can process messages from several rounds ago while simultaneously broadcasting its current round's pulse. This pipelining hides physical propagation delays and allows the system to maintain a continuous flow of proposals.
Pulsing vs. Responsive Modes
In its standard Pulsing Mode, every replica broadcasts a single message per round. This "pulse" serves three functions: it proposes new commands, provides a cumulative acknowledgment of all previously seen proposals, and acts as a heartbeat. This results in an amortized $O(1)$ message complexity. If the network experiences significant jitter, Chora seamlessly transitions to a Responsive Mode, falling back to traditional reactive coordination to ensure safety.
Evaluation and Key Results
The authors evaluated Chora on a cluster of servers with Intel Xeon CPUs and Mellanox ConnectX-5 NICs, comparing it against Multi-Paxos and Mencius.
Performance Benchmarks
- Throughput: In a 7-replica setup, Chora achieved a 255% throughput increase over Multi-Paxos and a 109% increase over Mencius.
- Latency: Chora maintains stable, low latency even as it approaches peak throughput, whereas traditional protocols exhibit significant latency spikes under load.
- Recovery: The system can detect failures and complete a view change in approximately 2ms, ensuring high availability.
Timing Determinism
A critical metric for Chora is the stability of its logical rounds. Empirical testing showed that the system successfully maintained rounds of under 2µs.
Conclusion
Chora demonstrates that "strong synchrony" is not just a theoretical construct but a practical tool for building high-performance distributed systems. By engineering the network stack to provide deterministic timing and designing a protocol that exploits this predictability, Chora achieves order-of-magnitude improvements in throughput and coordination efficiency. While it requires specific hardware support (DPDK and PTP), it provides a blueprint for the next generation of data center-scale replication.
Summary updated