Skip to content
IJK

Leader-Based Consensus Over Wide-Area Links: The Weakness Named

By IJK ·

The reliance on a single leader that Cloudflare's post names in common consensus algorithms, what happens when it degrades and what the post says is wanted instead.

What the common algorithms assume

QuePaxa is an unusual choice; most consensus systems use well-established consensus algorithms like Raft, (Multi-)Paxos or Viewstamped Replication. [1]

These algorithms are well understood, have mature implementations, and usually work well. [2]

These algorithms rely on a single leader process being available and having predictable latency. [3]

Single leadermust be available with predictable latencyLeader down, slow or disconnectedSystem slows or becomes unavailableuntil the leader is replaced
What happens to the system when the leader degrades?

What happens when the leader degrades

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. [4]

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. [5]

What the post says is needed instead

Ideally, a consensus algorithm should be able to make progress despite latency spikes and broken connections, not just replica failures. [6]

This is particularly a problem at global scale, where faults are more likely to originate in the network, and not our own servers. [7]

Sources

  1. The Cloudflare source says: QuePaxa is an unusual choice; most consensus systems use well-established consensus algorithms like Raft, (Multi-)Paxos or Viewstamped Replication. Choosing QuePaxa, an unusual consensus algorithm
  2. The Cloudflare source says: These algorithms are well understood, have mature implementations, and usually work well. Choosing QuePaxa, an unusual consensus algorithm
  3. The Cloudflare source says: These algorithms rely on a single leader process being available and having predictable latency. Choosing QuePaxa, an unusual consensus algorithm
  4. The Cloudflare source says: 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. Choosing QuePaxa, an unusual consensus algorithm
  5. The Cloudflare source says: 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. Choosing QuePaxa, an unusual consensus algorithm
  6. The Cloudflare source says: Ideally, a consensus algorithm should be able to make progress despite latency spikes and broken connections, not just replica failures. Choosing QuePaxa, an unusual consensus algorithm
  7. The Cloudflare source says: This is particularly a problem at global scale, where faults are more likely to originate in the network, and not our own servers. Choosing QuePaxa, an unusual consensus algorithm

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • consensus
  • distributed systems
  • cloudflare
  • reliability