The lab runs a leader and up to six followers on a network with a variable delay. Pick Compare all replication modes and all three rules run side by side on the same writes and the same network delays. Each panel shows lag per follower, mean write latency, the share of stale reads and, after you press the fail button, how many acknowledged writes were lost.
Predict before you press the button
lag = now − time of the oldest write a follower lacks3 followers, one-way delay 20 msleader acknowledges after: depends on the mode
The most up-to-date follower takes over. Writes it never received are gone.
Asynchronous
35.2
F11 behind
0
F2caught up
0
F3caught up
write latency
1.0ms
p99 write
1.0ms
stale reads
55.1%
acked writes lost
0
Semi-synchronous
35.2
F11 behind
0
F2caught up
0
F3caught up
write latency
37.8ms
p99 write
56.3ms
stale reads
2.2%
acked writes lost
0
Synchronous
35.2
F11 behind
0
F2caught up
0
F3caught up
write latency
57.5ms
p99 write
80.2ms
stale reads
0.0%
acked writes lost
0
Mean follower lag
Asynchronous
Semi-synchronous
Synchronous
Mean follower lag (lag (ms) against simulated time)
Series
Latest
Lowest
Highest
Asynchronous
11.7
0.0
32.9
Semi-synchronous
11.7
0.0
32.9
Synchronous
11.7
0.0
32.9
Stale reads, last 0.5 s
Asynchronous
Semi-synchronous
Synchronous
Stale reads, last 0.5 s (share of reads against simulated time)
Series
Latest
Lowest
Highest
Asynchronous
62%
17%
68%
Semi-synchronous
4%
0%
11%
Synchronous
0%
0%
0%
Reads under: Any follower, at random
stale reads
55.1%
own write missing
6.5%
went back in time
0.5%
served by leader
0%
Stale means older than the newest acknowledged write. Own write missing means a client did not see a write it had been told succeeded. Went back in time means a client saw an older value than one it read before. Numbers shown are for the first mode, asynchronous.