Partial quorum
A partial quorum configuration allows a read response set and a write acknowledgement set that need not overlap.
Partial quorums choose read and write quorum sizes with R + W <= N, so at least two quorums need not overlap, unlike strict quorums with R + W > N. With uniform R- and W-member subsets of the same N replicas, non-intersection has probability C(N-W,R)/C(N,R), about 1.88 x 10^-6 for N = 100 and R = W = 30 but 2/3 for N = 3 and R = W = 1. Missing all k recent writes raises it to the kth power only under independent write selections. [1]
Partial concerns overlap, whereas sloppy quorum concerns fallback membership. A sloppy quorum uses the first N healthy nodes on a preference list, and a replica sent to a stand-in node carries a hint for later handoff. The 2007 key-value store design that describes it reports (3,2,2) as its common (N,R,W) setting, which satisfies R + W > N. [2]
PBS fitted one-way delay distributions to production round-trip summaries, then ran simulations. Its N=3, R=W=1 LNKD-DISK and LNKD-SSD models reached 99.9% t-visibility at 45.5 ms and 1.85 ms, respectively. For YMMR, R=2/W=1 gave a 202 ms threshold and about 43.3 ms versus 230 ms for R=3/W=1 when adding the separate 99.9th percentiles of read and write latency. That sum is not an end-to-end percentile or a measured deployment speedup. [1]
For a random acceptable version count K independent of placement, the same conditional model averages p^K over K. Replacing K by its mean can understate the miss probability. Hesela supplies exact constructed examples, not measured request distributions. [4]
Relations
Advantages
- Expected staleness can be computed from N, R, W and latency distributions instead of being left as an unquantified eventual guarantee. [1]
Limitations
- This sampling model is not a production stale-read rate or a deterministic time bound. [1]
- Without intersection a later read can return an older version than an earlier one, so monotonic reads hold only with some probability. [1]
Citations
- Bailis et al. Probabilistically Bounded Staleness for Practical Partial Quorums. PVLDB 5(8), 776-787 (2012), sections 1-3, 5.5-5.6 and Table 4.
- DeCandia et al. Dynamo: Amazon's Highly Available Key-value Store. SOSP 2007, sections 4.5-4.6 and 6.
- Hesela: exact version-count mixtures, assumptions and executable source hashes.
Further reading
Sources & caveats
- pbs was rechecked in sections 5.1-5.6 and Table 4: the production inputs are round-trip summaries; the one-way distributions require fitting and assumptions. Latency/freshness estimates are simulated, separate from the paper's Cassandra validation.
- dynamo is the SOSP 2007 paper by DeCandia et al., read in sections 4.5, 4.6 and 6 for quorum settings, sloppy quorum and hinted handoff.
- The 2/3 value is computed from the cited ratio, and the 1.88 x 10^-6 value matches the ratio for N = 100 and R = W = 30.
- The published latency results were not reproduced. Adding the two displayed latency percentiles does not reconstruct a paired-operation latency distribution.