Choosing QuePaxa, an unusual consensus algorithm

João Pedro Leite · 2026年11月11日

AI 摘要 AI 生成,可能有误

Cloudflare chose QuePaxa, a lesser-known 2023 consensus algorithm, to power Meerkat, its experimental global distributed consensus service, instead of established algorithms like Raft, Multi-Paxos, or Viewstamped Replication. Traditional leader-based algorithms degrade under wide-area network conditions because they depend on a healthy, reachable leader and accurate fault detection—leading to destructive interference during elections, metastable failures, and slow recovery when networks are volatile. QuePaxa avoids these pitfalls by not relying on a leader to make progress, making it better suited to the high-latency, asynchronous Internet environment where Meerkat runs.

Cloudflare recently announced Meerkat, an experimental distributed consensus service designed to manage our internal global control plane. It is powered by a new consensus algorithm published by researchers Tennage & Băsescu et al. called QuePaxa (2023).

QuePaxa is an unusual choice; most consensus systems use well-established consensus algorithms like Raft, (Multi-)Paxos or Viewstamped Replication. These algorithms are well understood, have mature implementations, and usually work well.

Unfortunately, common consensus algorithms often suffer in wide-area networks with volatile network connectivity and latency, i.e., networks like the Internet, which is where Meerkat runs. These algorithms rely on a single leader process being available and having predictable latency. If the leader goes down, experiences higher latency than usual, or is disconnected, the entire consensus system slows down or becomes unavailable until the leader is replaced. This is unacceptable for Meerkat.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Cloudflare Blog

Varlock is joining Cloudflare

AI 摘要Varlock, an open-source toolkit for managing environment variables and secrets, is joining Cloudflare while remaining MIT-licensed, vendor-neutral, and actively developed. Varlock's .env.schema approach provides validation, type safety, and secure declarative secret loading as a single source of truth, and planned hosted Varlock features will be redirected into Cloudflare Secrets Store instead. The article also highlights the growing urgency of secrets management in the AI era, outlining work on agentic workflows, credential brokering, and pushing .env.schema as a broader open standard.

Post-quantum cryptography is still safe

AI 摘要Anthropic published theoretical research describing quantum algorithms for the lattice problems (Module-LWE and Module-SIS) underlying post-quantum cryptography standards ML-KEM and ML-DSA, prompting Cloudflare to reassure users that deployed cryptosystems remain secure. The proposed attacks are impractical because they would require quantum computers with billions of qubits—far beyond today's technology—and have runtime so large they qualify as 'galactic algorithms,' with no practical threat indicated. Cloudflare views AI-assisted cryptanalysis as a way to strengthen confidence in cryptography by finding and addressing risks faster, and it continues its post-quantum migration, with 73% of human traffic to Cloudflare now post-quantum encrypted.

Introducing Search for Agents

AI 摘要Cloudflare has introduced Search for Agents, a feature that automatically creates an AI Search instance for a zone, crawls and indexes its content, and exposes a search API from the customer's own domain—removing the need for manual setup and integration. The search endpoint is advertised to AI agents via metadata in HTML pages or YAML front matter when Markdown for Agents is enabled, and it returns retrieved content in Markdown while natively supporting the new HTTP QUERY method. The feature is available to all customers (with limits on Free plans) and follows existing AI Search pricing and configuration options.

Probing DNS at Cloudflare

AI 摘要The article describes how Cloudflare's DNS team extended Flamingo, its internal end-to-end testing framework built in Rust with a modular architecture, to continuously probe DNS record propagation in production from every data center. The DNS module measures how quickly record changes reach authoritative nameservers and the 1.1.1.1 public resolver, feeding these measurements into SLOs and error budgets that can automatically halt or roll back releases when issues appear. This approach addresses DNS failures that are slow, distributed, and partial, and Flamingo's extensibility opens the door to testing other protocols like TCP, UDP, and WebSockets.

How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

AI 摘要Ruby disclosed ruby2shell (CVE-2026-132825), a critical heap buffer overflow in string case conversion involving legacy single-byte encodings and the German sharp s (ß), which can enable pre-authentication remote code execution in default Rails and Sinatra applications and is fixed in Ruby 3.3.14, 3.4.13, and 4.0.10. Cloudflare WAF now blocks the vulnerability—and a related integer overflow (GHSA-87fm-7w84-j2px)—for all customers, including those on the Free plan, though the WAF is only a compensating control and upgrading Ruby remains the complete fix. Cloudflare has patched its own Ruby systems with no indication of compromise, and urges users to upgrade Ruby runtimes, rebuild container images, and update bundled products like GitLab and Mastodon before public proof-of-concept exploits appear.