Skip to content
Networking 5 min read

Cloudflare picks QuePaxa, a leaderless consensus algorithm, to survive network outages

On November 11, 2026, Cloudflare explained why Meerkat, its consensus service for the global control plane, abandons Raft and Multi-Paxos in favor of QuePaxa, a leaderless protocol published in 2023.

2020. A partial failure of a core Cloudflare network switch slows its dashboard down by a factor of 80 for six hours. 2023. Researchers Pasindu Tennage and Cristina Băsescu publish QuePaxa, a leaderless consensus algorithm. November 11, 2026. Cloudflare explains why Meerkat, its experimental consensus service, chose this little-known protocol over Raft or Multi-Paxos. Why it matters: on a global network, latency spikes and broken links are the norm — and leader-based consensus algorithms break down exactly under those conditions.

Meerkat: consensus at a global scale

Meerkat is a distributed system in which replicas agree on an ordered log of events, each event decided by a consensus algorithm. Consensus provides one precious guarantee: machines that are apart never decide conflicting values, so their logs never diverge.

On top of this log, Cloudflare exposes applications like a key-value store, where every entry is a get or a put. The comparable systems are Consul, etcd, or Apache ZooKeeper — the family of distributed registries that coordinate the rest of the infrastructure. The difference comes down to two words: global scale. A Meerkat cluster can span several continents, connected by links whose latency is both high and variable. Consensus systems are normally deployed on local networks with strict latency budgets — a few milliseconds, not a few hundred.

Why a leader breaks on the Internet

Consensus algorithms inherit the structure of Paxos, for better and for worse. In Paxos, proposers submit numbered proposals to acceptors in two phases. When two proposers submit at once, they can interleave ever-higher ballot numbers and block each other indefinitely — what Cloudflare calls destructive interference. The more concurrent proposers, the more likely the system freezes. Formally, Paxos only guarantees liveness under partial synchrony — bounded message delivery, an assumption that does not hold on the Internet.

To avoid the competition, the protocols actually deployed in production — Raft, Multi-Paxos, Viewstamped Replication — concentrate proposing power in a single leader. While the leader is healthy and the network behaves, this is fast: one round trip. The problem arrives when the leader fails, slows down, or disconnects: the whole system stalls until a replacement is elected.

And the election reintroduces destructive interference. In Raft, several replicas can become candidates simultaneously and deny each other the required majority. Worse, elections keep going even after the original leader recovers — a metastable failure, described by Marc Brooker in 2021, that outlives its initial cause. A two-second outage can trigger elections that run for far longer.

Fault detection, the guess that is always wrong

The trigger for all of this is fault detection. A process cannot directly observe that a remote peer has failed; it only sees that an expected message has not arrived. On an asynchronous network, "no response" cannot tell a dead server from a slow one — the two are indistinguishable across the wire. The detector therefore has to guess, and sometimes it guesses wrong.

The guess is also bounded by latency. Raft is commonly deployed with an election timeout of five to ten times the round-trip time — enough for the leader to prove it is alive. An intercontinental round trip is measured in hundreds of milliseconds, so detecting a failed coordinator takes about a second. Even when detection is accurate, it is slow — and it is slowest precisely on high-latency global networks.

QuePaxa: the leader becomes optional

QuePaxa inverts three design choices. The leader becomes optional, fault detection is removed entirely, and interference between proposers becomes constructive instead of destructive.

In QuePaxa, as in Paxos, there are proposers and recorders. Every proposal gets a random priority, and the leader — when there is one — holds the maximum priority. When a proposer receives a proposal with a higher priority than its own, it adopts it and starts broadcasting it. Proposers therefore cooperate to elect the highest-priority proposal they collectively know, instead of neutralizing each other. The price of cooperation is a rounds structure, made of four phases:

  • Phase 0 (Propose and Adopt) — priorities are drawn, proposals sent to recorders, the best view adopted. If this is the first round and the leader reached a majority first, it decides immediately.
  • Phase 1 (Spread) — each proposer spreads its adopted proposal to a majority of recorders.
  • Phase 2 (Check and Decide) — a proposer asks a majority for the highest priority observed; if it matches its own, it decides.
  • Phase 3 (Carry Forward) — whoever failed to decide carries the best proposal found into the next round.

Safety rests on majority intersection: any two majorities of recorders share at least one recorder, so any decided proposal is inevitably adopted by the other proposers. The leader, the only one able to decide in one round trip, remains the fast path — but it is no longer a mandatory checkpoint.

A timeout that is no longer a timeout

The most telling mechanism is hedging. Clients send their requests to every replica, and non-leaders wait a short delay — the hedge timeout — to give the leader a chance to decide alone. This delay is not fault detection: it is chosen locally, independent of network latency. Where a five-millisecond timeout would completely freeze Raft on a network with 100-millisecond latency, the same delay in QuePaxa merely increases the number of active proposers.

The trade-off is explicit: lowering the hedge timeout speeds up the reaction to leader loss, at the cost of more messages and sometimes slower decisions. "That’s a tradeoff we’re more than willing to make," write the post’s authors, João Pedro Leite, Bob Halley, and James Larisch.

Slowing down without ever stopping

The numbers from Meerkat’s internal evaluation tell the story. More than 95% of decisions are made by the leader in the first phase — one round trip. When the leader fails, the share of phase-2 decisions — three round trips — climbs, and throughput drops to at most a third of its normal level. The system slows down, but never stops: after the leader is replaced, about a minute later, throughput returns to 100%.

This is the exact inverse of 2020. The switch failure had made the system unavailable for writes for hours, even though no data was lost. QuePaxa turns that scenario into a mere dip in throughput.

What this changes for an SRE

The post is worth reading even for those who will never deploy QuePaxa. Its lesson is methodological: when you run consensus over an asynchronous network, fault detection and leader elections are not a recovery mechanism — they are the failure. Every false positive from a detector costs a full outage, and every election is another chance for destructive interference.

The caveat is honest. QuePaxa does not have the maturity of Raft or Paxos: it has only been published since 2023, and Cloudflare is extending its original crash-stop model to support crash recovery. The team’s answer is formal verification of its Rust implementation, large-scale simulation, and fault injection — the price of turning an academic protocol into a production system.

Verdict

If you run a consensus cluster — etcd, Consul, ZooKeeper — spread across regions or continents, and your failures show up as slowdowns followed by endless elections, apply QuePaxa’s lesson before considering a migration: first measure how long your system spends in elections and how many false positives your fault detector produces. The fix is often re-tuning over-aggressive timeouts, not swapping algorithms. If your cluster lives on a low-latency local network, Raft remains the right choice: mature, simple, fast — QuePaxa is a bet reserved for those who genuinely suffer from global network asynchrony, and it demands in exchange a level of formal verification few teams can fund.

References

You are reading the Networking section.

RSS Networking

Walid ETTAYEB

DevSecOps engineer in Paris: cloud, Kubernetes and security.

Related articles