In this lesson · topic 3 of 7
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
Things to try
- 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.
- Pick Compare all R and W settings and compare latency, then raise the unreachable chance to 25 percent and compare accepted writes.
- Set two slow replicas and raise R and W from 3 to 5.
- Choose a sloppy quorum with R=3, W=3 and 25 percent unreachable. Compare accepted writes and stale reads against a strict one.
- 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.