arXiv:2608.24622cs.DCAug 2026

Manuscript Offprint

arXiv:2608.24622

Scalable datacenter replication with mostly-synchronous consensus on hardware

Davide Rovelli, Philipp Berdesinski, Rodrigo Otoni, Patrick Eugster

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Consistent replication of data among distributed processes – a task involving the well-known consensus problem – is notoriously expensive and hard to scale, affecting especially datacenter services with stringent performance requirements. To mitigate this problem, we introduce scalable replication in-hardware (scarHW): a network card design that improves throughput and latency of consistent replication even when increasing the number of replicas, whereas current systems operate at a small scale or with relaxed consistency guarantees. At the heart of scarHW is our novel POPUC consensus algorithm, implemented in an FPGA smartNIC to take full advantage of the “mostly synchronous” behavior of programmable network devices in the datacenter. Unlike widely-adopted “mostly asynchronous” coordination protocols such as Paxos or leaderless alternatives, POPUC implements a generalized variant of consensus dubbed collaborative consensus which allows for several simultaneous decisions, achieving great scalability without compromising availability. POPUC preserves safety guarantees in the presence of process crash-stop and message send/receive omission failures (capturing incidental asynchrony) and has been formally specified and verified in TLA +^{+}. Our FPGA prototype improves throughput and latency of widely-used services Redis and Zookeeper by up to two orders of magnitude compared to the state of the art. scarHW-based services also achieve zero downtime upon failure of a minority of replicas, offering a highly-robust, wire-speed, scalable replication system.

1 Introduction

State machine replication (SMR) is a mechanism at the heart of countless highly-available services which need to ensure a consistent state across nodes. These services include heavily-demanded online applications running in datacenters, such as for coordination [30], event streaming [37], data storage [71, 82], key-value storage [61, 74], memory disaggregation [28, 41], and resilient large language model training [46]. Because they form the backbone of critical infrastructure, SMR implementations need to be robust to

Philipp Berdesinski

philipp@berdesinski.dev

turbalance

Heidelberg, Germany

Patrick Eugster

eugstp@usi.ch

Università della Svizzera Italiana (USI)

Lugano, Switzerland

failures. This leads to the long-standing challenge of achieving fault-tolerant coordination among distributed processes, i.e., achieving consensus, efficiently.

Constraints of asynchronous protocols. Current coordination services still predominantly assume the “mostly asynchronous” partial synchrony model [22] in which, prior to a (unknown) global stabilization time (GST), computing and communication times are unbounded due to arbitrary resource contention on end nodes and in the network. This assumption introduces several costs in protocol design, which the community has embraced as the inevitable price to pay for fault tolerance. The vast majority of state-of-the-art SMR services thus rely on variants of popular (mostly) asynchronous protocols Paxos [38] and Raft [51]. Recent works propose optimizations using modern datacenter technologies such as programmable switches [19, 42], smart network interface controllers (smartNICs) with field programmable gate arrays (FPGAs) [7, 13, 31, 33], remote direct memory access (RDMA) [3, 21, 26], and OS-bypass frameworks [34, 83]. While boosting performance, most such solutions inherit the fundamental limitations of the underlying system model and algorithms. Crucially, by funneling replication requests through a leader process, they induce three major constraints:

C1. Single-process bottleneck: the leader processes client requests, forwards them to all replicas and receives acknowledgments from a majority of them. Resources available at the leader significantly constrain the performance of the whole cluster [5, 6, 21].

C2. Low scalability and fault tolerance: The leader bottleneck incurs particularly rapid performance degradation as the number of replicas increases. System architects mitigate this issue by restricting replication to few nodes [11, 73]. This, however, strongly limits the number of tolerated failures given that a correct majority quorum is needed for liveness.

C3. Service downtime: During leader election or cluster reconfiguration the system cannot process requests.

Multi-leader and leaderless SMR. Other classical consensus protocols on top of mostly asynchronous models, e.g., rotating coordinator [15], may rely on leaders less (explicitly), but exhibit other constraints [49, 76]. More popular solutions to circumvent C1 and C2 include multi-leader versions of Paxos which use small replication groups/shards with consensus mechanisms on top to coordinate group management [6, 40, 72], and others attempts at decentralization [35, 45, 48]. Alas, such approaches pay the price of loosening consistency guarantees (e.g., sharding implies partial instead of total order), or degrading C3 and response latency in the face of contention [48] or stragglers [35, 78].

Mostly synchronous datacenters. We instead propose to tackle C1-C3 more fundamentally by building a solution ground-up on top of a different system model. We start from the observation that programmable datacenter networks can provide stable, low time bounds [57, 80], further supported by the rise of ultra-low latency network protocols claiming bounded datacenter communication latency [34, 55]. Moreover, now widely-available smartNICs can significantly strengthen synchrony in practice through fast, uninterrupted packet processing at the endhost [65]. However, though rare, synchrony violations have to be taken into account, as a single violation can otherwise lead to inconsistencies.

ScarHW: collaborative consensus on FPGA. In light of these insights, we propose the scalable replication in-hardware (scarHW): a network card design providing a robust and efficient SMR service offloaded to an FPGA in order to leverage the predictability and speed of datacenter networks. At the heart of scarHW is the popular uniform consensus (POPUC): a novel consensus algorithm which exploits “mostly synchronous” systems for performance while ensuring fault tolerance in the presence of process crash-stop as well as message send/receive omission failures to capture any incidental late or lost messages. By relying on a correct majority quorum, POPUC has the same message complexity, safety guarantees, and actual fault tolerance as Paxos (including when a majority fails, cf. Tab. 1), but has crucial advantages. Most importantly, POPUC is leaderless, solving a variant of consensus which we call collaborative consensus (co-consensus), that allows several simultaneous decisions from multiple propositions. This approach allows client requests to be issued across replicas without impacting latency, unlike classic batching strategies (which scarHW can also use). By harnessing load distribution and hardware acceleration, scarHW-based services thus allow the increase of fault tolerance by adding more replicas while also maintaining or even improving throughput and latency of consistent replication, overcoming C1 and C2. However, unlike asynchronous leaderless protocols, scarHW does not compromise latency, does not require partitioning/sharding (which would make it even more scalable) and achieves negligible service downtime up to t=⌊N−12⌋t = \lfloor \frac{N-1}{2} \rfloor failures, eliminating C3. In short, by leveraging hardware support with our system/failure model, scarHW reaps all the 1. pros of synchrony without suffering any 2. cons often attributed with it: 1. inherently leaderless coordination without 2. rigid lock-step execution (early termination in absence of failures) or conservatively high latency bounds (stable maximum interaction latencies below average of asynchronous approaches).

Our prototype – implemented on an AMD/Xilinx Alveo U50 [9] smartNIC – can saturate a 100Gbps network with worst-case 5.4μs response latency. With more than 3 replicas, scarHW delivers up to 2.5× higher replication throughput than Raft-based Waverunner [7], the fastest (to our knowledge) hardware SMR service. The full potential of scarHW emerges when integrated into microservices: when scaling up to 59 nodes, scarHW improves Redis by up to two orders of magnitude in both throughput and latency compared to NOPaxos [42].

References (27)