Skip to content
IJK

Quorum Waits and Write Latency: How One Slow Replica Sets the Pace

By IJK ·

What GitHub's post says a quorum needs and what it waits for, how the slowest healthy replica and a repository-wide lock set write latency and the principle it names.

What the quorum needs and what it waits for

Spokes’ quorum only needs a majority to commit a write, but it waits for every healthy replica to respond (up to a timeout) before moving on, so slow replicas delay every write rather than falling behind. [1]

How one slow replica sets the pace

In practice, that means the slowest healthy replica sets the latency of every write, and because each write holds a repository-wide lock until it commits, it also sets the throughput ceiling. [2]

A repository already near its throughput ceiling can’t absorb that on every serialized write; it would fall further behind with every push. [3]

In our current architecture, a repository hosted in more than one region has a lower write throughput ceiling. [4]

Quorum needs only a majoritybut waits for every healthy replicaSlowest healthy replicasets the latency of every writeRepository-wide lock held until commitsets the write throughput ceiling
How does the slowest healthy replica end up setting the pace of every write?

The principle the post names

Specifically for this case: don’t serialize what doesn’t need to be. [5]

Sources

  1. The GitHub source says: Spokes’ quorum only needs a majority to commit a write, but it waits for every healthy replica to respond (up to a timeout) before moving on, so slow replicas delay every write rather than falling behind. The bridge to agent-scale Git infrastructure
  2. The GitHub source says: In practice, that means the slowest healthy replica sets the latency of every write, and because each write holds a repository-wide lock until it commits, it also sets the throughput ceiling. The bridge to agent-scale Git infrastructure
  3. The GitHub source says: A repository already near its throughput ceiling can’t absorb that on every serialized write; it would fall further behind with every push. The bridge to agent-scale Git infrastructure
  4. The GitHub source says: In our current architecture, a repository hosted in more than one region has a lower write throughput ceiling. The bridge to agent-scale Git infrastructure
  5. The GitHub source says: Specifically for this case: don’t serialize what doesn’t need to be. The bridge to agent-scale Git infrastructure

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

  • git
  • replication
  • latency
  • github