Definition · Quorum write, and its acknowledged-by distributionA quorum write with parameters (N, W) is sent to all N replicas and acknowledged when W of them have replied. If replies are independent with CDF F, then P(acked by t) = Σ C(N,k) F(t)^k (1 − F(t))^(N−k) summed over k = W to N — the probability that at least W of N replies arrived by t.
This is the same sum as a k-of-n availability and the lab computes it with the same code, which is the point: “at least W of N replied by t” and “at least k of n are up” are one question asked of two different Bernoulli trials.
per-replica reply time as in the synchronous-write lesson
F(2) = 0.6 F(4) = 0.9 F(8) = 0.97 F(16) = 0.992 F(24) = 0.998
W = 2, sweeping N p99 of the quorum ack
N = 2 wait for both 24 ms
N = 3 8 ms
N = 4 4 ms
N = 5 4 ms
N = 8 2 ms
and for comparison, waiting for everybody
N = 3, W = 3 24 ms
Two of the rows are worth pausing on. W = N is the synchronous write of an earlier lesson and it costs 24 ms; relaxing the same three-node cluster to W = 2 costs 8 ms, a third as much, for a write that is still on two machines. And then adding a fourth replica — a change everybody describes as making writes more expensive — halves it again.
Why a larger N is faster
Because W is a threshold and N is the number of attempts at it. Each replica is an independent chance to be among the first two back; more chances means the second one arrives sooner. The write is not waiting for the extra replica, it is racing it, and a race with more entrants finishes its second place earlier.
at t = 4 ms a replica has replied with probability F(4) = 9/10
N = 3, W = 2 P = C(3,2)(9/10)²(1/10) + C(3,3)(9/10)³
= 3(81/100)(1/10) + 729/1000
= 243/1000 + 729/1000
= 972/1000 = 0.972 < 0.99
N = 4, W = 2 P = 1 − (1/10)⁴ − C(4,1)(9/10)(1/10)³
= 1 − 1/10 000 − 36/10 000
= 9963/10 000 = 0.9963 ≥ 0.99
so the p99 falls from 8 ms to 4 ms when the fourth replica is added
Nothing about the fourth replica is faster than the first three. What changed is that the event “fewer than two replies by 4 ms” now requires three or four stragglers instead of two, and stragglers are rare enough that requiring one more of them pushes the probability below the 1% the p99 is asking about.
Example · The fourth replica, and the read that stopped overlappingThe same cluster runs R = 2, W = 2 at N = 3: R + W = 4 > 3, so it overlaps and the minimum overlap is 1. Add the fourth replica for the latency and now R + W = 4 = N, which overlaps nothing — and “Sloppy Quorums and the Miss Probability” prices the damage as C(N−W, R)/C(N, R) = C(2,2)/C(4,2) = 1/6. One read in six misses the write. Restoring the guarantee means R = 3, which makes every read wait for the third fastest of four instead of the second of three. The write got faster by making the read slower, and no dashboard would have shown the trade.
So the useful rule is not “more replicas are slower” or “more replicas are faster”. It is that N moves the latency of a fixed-W quorum down and moves the overlap condition against you at the same time, and both effects have to be computed whenever N changes.