In this lesson · topic 3 of 7
Topic 3
Trusting storage against token storage
7 min read
Two storages, one story
The lab starts in compare mode. Both sides see the same clients, the same lock service and the same stalls, from the same seed. Only the storage rule differs. Each panel shows who holds the lock and for how long, what every client is doing, and how many writes storage accepted, rejected, and accepted on top of a newer holder’s write. That last number is the one that matters.
Predict before you press play
Things to try
- Watch a client turn red. It stalled after checking its lease. Follow the next few seconds in both event lists.
- Set the stall length below the lease. Corruption stops on both sides, because the lock is never reassigned under a live client.
- Raise the lease to 5000 ms. Corruption nearly stops without fencing. Then watch how long clients wait every time a lease expires under a stalled holder.
- Set stalls to 0% and work to 900 ms with a 1000 ms lease, then raise clock drift. The client’s own lease check starts letting late writes through.
- Raise clients to 6. More waiters mean the lock is reassigned the instant it expires, so every stall overlaps a newer write.
The full-page lab has five guided experiments with one-click setups.