Try
↑ ↓ move↵ openesc close
Quorums3 / 7
In this lesson · topic 3 of 7
  1. 1. What if there is no leader
  2. 2. Overlap, and the k-th fastest reply
  3. 3. Tune R and W against slow and dead replicas
  4. 4. What R plus W above N still does not promise
  5. 5. Two writes at once, and which one wins
  6. 6. Merkle trees, expiring hints, and deleted data coming back
  7. 7. Check the quorum arithmetic

Topic 3

Tune R and W against slow and dead replicas

8 min read

Turn the dials

The lab runs a store of N replicas with a stream of writes and reads. Every replica may be unreachable for a given request with a chance you set, and some replicas can be made slow. The panel shows each replica’s version, which ones counted in the last operation, and the measured stale reads, answered reads, accepted writes and latencies.

Predict before you press the button

Five replicas, two of them slow, nothing unreachable. You raise R and W together from 3 to 4. What happens to the median latency?

R + W = 3 + 3 = 6N = 5every read set overlaps every acknowledged write set

R=3, W=3 · R+W > N

  • #1 slowv84behind
  • #2 slowv83behind
  • #3v86current
  • #4v85current
  • #5v86current

Last write: 86.5 ms. Outlined cells counted toward the last quorum. Dashed cells were unreachable.

stale reads
0.0%
reads answered
100%
writes accepted
100%
read p50 / p99
15.4 / 123ms
write p50 / p99
15.4 / 144ms
Stale reads, last 2 s
Stale reads, last 2 s. Text version available below the chart.0%25%50%75%100%t=0st=2st=4ssimulated timeshare of reads

Full-page version with guided experiments: Quorums lab.

Things to try

  1. Set R=2 and W=2 on five replicas with nothing unreachable and no slow replicas. Note the stale read share. Then set R=3 and W=3.
  2. Pick Compare all R and W settings and compare latency, then raise the unreachable chance to 25 percent and compare accepted writes.
  3. Set two slow replicas and raise R and W from 3 to 5.
  4. Choose a sloppy quorum with R=3, W=3 and 25 percent unreachable. Compare accepted writes and stale reads against a strict one.
  5. With R=1 and W=1, switch read repair on and watch the stale chart.

The full-page lab has five guided experiments with a setup button for each.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms