Cloudflare Moves a Leaderless Agreement Method Into Meerkat

The team says the approach lets the experimental Meerkat system keep handling requests across continents when a coordinating node crashes, goes offline or slows, a contrast with Raft and Multi-Paxos.

Cloudflare has chosen a consensus method that few others in the industry depend on. The method, QuePaxa, is built to keep making progress without leaning on one steady leader node. InfoQ reports that the company is putting it to work in Meerkat, a test-stage system for distributed consensus aimed at better coordination across infrastructure spread over many locations.
Why the usual options fell short
Consensus methods let a set of machines settle on one shared value even when some of them fail or lose their connections, while guaranteeing that no two machines arrive at conflicting outcomes.
Cloudflare research engineers João Pedro Leite and James Larisch, together with principal research engineer Bob Halley, call QuePaxa “an unusual choice.” Better-known designs such as Raft, (Multi-)Paxos and Viewstamped Replication are widely understood and have seasoned implementations. The authors contend those popular designs “often suffer in wide-area networks with volatile network connectivity and latency.” That description, they note, fits the Internet, which is where Meerkat runs.
How the protocol runs
Leader-based designs can spend valuable time electing a replacement and recovering after a failure. QuePaxa removes that dependency, since any node can make a proposal. A brief, adjustable timeout lets other nodes step in proactively rather than waiting until a leader is confirmed to have failed.
Each round has four stages. Proposers pass their current suggestions to every recorder and proceed after hearing from a majority. Along the way, the highest-priority proposals are adopted and passed around, and the system checks whether there is enough agreement to settle on a value. When no choice is settled, the leading candidate advances to the subsequent round.
Results so far
Cloudflare ran Meerkat on servers spread across nearly every continent. The team says the system “continuously processes requests, even when the leader crashes, disconnects, or just becomes slow,” and that it has never seen the system stall completely. “This is exactly what we wanted,” the engineers write.
Developer reactions
Manas Maheshwari, a senior software engineer at Apex, posted on LinkedIn that the advantage lies in something other than simply dropping leaders. In Maheshwari’s view, a mistaken read on failure hurts throughput instead of availability. Over a global network, slow nodes and dead nodes can look the same for long enough that the recovery mechanism itself can turn into the outage, so moving from one round trip to three without halting “feels like the right trade.”
On Reddit, some users asked how Cloudflare stops several leaders from joining in on proposals. One user, leros, said they were surprised new consensus algorithms are still appearing, having assumed the field was tuned 10 to 20 years ago.
The method is positioned as a substitute for leader-driven agreement when spread-out systems need to stay up. The paper describing the algorithm is on ACM.
Source: InfoQ
Morning to night, Reporting Team files on the machines and code changing daily life. We retell another publication's findings ourselves, always naming that publication and hyperlinking the original article.
Responses
One briefing. Every morning. Free.
Start the day with Circuit Courier: the essential AI & tech stories in one email.