Results
A Valkey group under three Sentinels
The measured numbers of this page are a study of valkey 9.1 and kernel 6.17.0. The data comes from data file sentinel-2026-10-17.json of 2026-10-17, on valkey 9.1 and kernel 6.17.0. The oldest data of this page is 37 days old at this build, on 2026-11-23. The age limit of this data is 30 days, from 2026-12-07. The engine has a pinned version, but the driver, the prober and the bands are code of this repository.
- Catalogs
- T12
- Date
- 2026-10-17
- Kernel
- Linux 6.17 · HZ 1000
- Cells
- 13
- Runs
- 143 runs
These are the results of the T12 cells, from 2026-10-17. T12 is a replicated group under an external failover authority. The group has a primary and two replicas of Valkey 9.1.2, and three Sentinels with a quorum of 2. The client is ioredis 6.0.0 in Sentinel mode, at its defaults. It writes a stream of SET commands, with a pause of 50 ms after each reply.
CI started the cells on the hosted runners of GitHub. The kernel is Linux 6.17, with HZ 1000. Each cell has 11 runs in 2 fresh environments, and each environment starts with one warm-up run that the verdict does not count. The full run of the catalogs at main, 39074841434, did the 13 cells with each other catalog, in 12 shards.
Of the 13 cells, 9 hold against the prediction of the algebra, and 4 are measurements only. No cell fails, and each stage of each failover is in its band. No run is void.
What the cells found
Section titled “What the cells found”- At the defaults, the Sentinels name a new primary 30.9 s after a crash. A
finat the primary gives+sdownat 30.054 s and+switch-masterat 30.916 s. The reconnect ladder of ioredis finds the new primary at 32.574 s. A primary that refuses each connection (rst) gives 32.668 s. - A frozen primary keeps its client until the thaw. ioredis has no timer for the group, thus its socket to the frozen primary stays open. After a freeze of 40 s, the Sentinels make the old primary a replica at 50.03 s, and that closes the client. The client writes to the new primary at 50.205 s.
- The thawed primary accepts writes that the group does not keep. From the thaw to its conversion, the old primary accepts the writes of the client for 10 s. Thus the group lost 199 accepted writes in the median run. The freeze of 33 s lost 199 writes too. The freeze of 29 s ends inside
down-after-milliseconds, thus no failover occurs, and no write is lost. - The plain
SENTINEL FAILOVERloses writes, and the coordinated one does not. In the plain failover, the new primary is in place at 1.177 s. But the old primary accepts writes until the Sentinels convert it at 11.236 s, and the group lost 219 writes in the median run. In the coordinated failover, the client writes to the new primary at 1.249 s, and the group lost no write. - The partition of DV-40 is a split brain. The primary keeps its clients, and it loses its Sentinels and its replicas. The Sentinels name a new primary at 31.441 s, but the client writes to the old primary while the partition holds. The group lost 1,041 writes in the median run. After the lift, the client writes to the new primary at 52.78 s.
- A black hole at the primary cuts its clients too. The client writes to the new primary at 52.642 s, after the lift. The old primary got almost no write, and the group lost 8 writes in all 11 runs.
- A partition from the clients only gives no failover. The Sentinels see a live primary. The reply comes at the eighth firing of the RTO timer after the heal, at 52.737 s.
- The border of
down-after-millisecondsholds on each side. A freeze of 29 s ends before the 30 s of the Sentinels, and the same primary answers at 29.003 s. A freeze of 33 s gives a failover, and the client writes to the new primary at 43.18 s. - The give-up of the offline queue holds on each side. At its close 21, ioredis 6 fails each queued write with
MaxRetriesPerRequestError, 71.35 s to 75.9 s after a crash. Withdown-after-millisecondsat 69 s, the client writes to the new primary at 73.465 s, before that error. At 76 s, each run met the error first, at 73.494 s, and the client wrote to the new primary at 78.641 s. - The stamps of the observer are late by 1.003 ms at most. The calibration read 402 stamps of the Sentinels. Their delay has a median of 0.254 ms, a 99th percentile of 0.815 ms and a maximum of 1.003 ms.
- Each stage band of these runs includes an error of 0.705 ms: the maximum of the first calibration, on 2026-10-16. The maximum of this run is 0.298 ms more.
- Each stage holds with that error. A larger error only makes each band wider, thus each stage holds with 1.003 ms too.
- The catalog takes 1.003 ms as the error of the next run. It is the 99.9th percentile of the 799 stamps of the two calibrations.
The writes
Section titled “The writes”The table tells what became of the writes in each cell. It gives the count of runs in which the client wrote to a new primary. It also gives the accepted writes that the group did not keep, in the median run and at most. The last column gives the writes that the old primary accepted after the fault.
| Cell | New primary | Lost writes in a run | Writes to the old primary |
|---|---|---|---|
partition:partial, the primary cut from the Sentinels and the replicas, its clients with it, 40 sT12.defaults.1 | 11 of 11 | 1,041, at most 1,047 | 1,041, at most 1,048 |
partition:partial, the primary cut from the clients, a 40 s stallT12.defaults.1 | 0 of 11 | none | 40, at most 41 |
blackhole at the primary, 40 sT12.defaults.6 | 11 of 11 | 0, at most 4 | 0, at most 4 |
freeze-process at the primary, 40 sT12.defaults.7 | 11 of 11 | 199, at most 199 | 199, at most 199 |
fin at the primaryT12.defaults.8 | 11 of 11 | none | none |
event:planned, SENTINEL FAILOVERT12.defaults.9 | 11 of 11 | 219, at most 221 | 223, at most 224 |
event:planned, SENTINEL FAILOVER COORDINATEDT12.defaults.9 | 11 of 11 | none | 4, at most 5 |
rst at the primary: each peer refusedT12.defaults.10 | 11 of 11 | none | none |
freeze-process at the primary, 29 s, inside down-after-milliseconds 30 sT12.border-off.1 | 0 of 11 | none | 41, at most 41 |
freeze-process at the primary, 33 s, outside down-after-milliseconds 30 sT12.border-off.2 | 11 of 11 | 199, at most 199 | 199, at most 199 |
fin at the primary, down-after-milliseconds 69 s, inside the give-up of the offline queueT12.border-off.15 | 11 of 11 | none | none |
fin at the primary, down-after-milliseconds 76 s, outside the give-up of the offline queueT12.border-off.16 | 11 of 11 | none | none |
the stamps of the observer of the Sentinels, event:planned SENTINEL FAILOVERCAL | 11 of 11 | 218, at most 219 | 221, at most 224 |
The defaults
Section titled “The defaults”These cells have the triggers of the plan at the defaults of Valkey and ioredis: down-after-milliseconds 30 s and failover-timeout 180 s. The prediction of a failover comes from two machine documents: the Sentinel of Valkey 9.1.2 and the Sentinel path of ioredis 6.0.0. The table of each frame gives each stage that a Sentinel announced, from the fault.
T12.defaults.1- Prediction
- no band
- Median
- 52.7802 s
- Runs
- 11 counted · 2 warm-ups
- Counted run
- Warm-up, not counted
- Median
This cell has no band. This cell is a split brain. The client stays on the old primary while the fault holds, because ioredis has no timer for the group. After the lift, the old primary becomes a replica again only when a Sentinel reaches it. That occurs on the SYN backoff of its kernel, from a time that no document gives. The harness measures the time from the fault to the first write that succeeds.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 31.203 s | 30.345 s | holds |
+odown | 30 s to 31.305 s | 30.345 s | holds |
+try-failover | no band | 30.345 s | |
+elected-leader | 30.052 s to 31.409 s | 30.428 s | holds |
+selected-slave | 30.104 s to 31.509 s | 30.491 s | holds |
+promoted-slave | 30.156 s to 32.713 s | 31.368 s | holds |
+switch-master | 30.156 s to 32.815 s | 31.441 s | holds |
+convert-to-slave | no band | 52.63 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 11,360 accepted writes in all: 1,041 in the median run, and 1,047 at most. The old primary accepted 1,041 writes after the fault in the median run. The client met ECONNRESET in 1 run, first at 50.304 s in the median run.
The median is 52.78 s from the fault, and the counted runs measured 50.293 s to 53.15 s.
T12.defaults.1- Prediction
- 51.447 s to 53.209 s
- Median
- 52.737 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 51.447 s to 53.209 s after the fault. The Sentinels see a live primary, thus no failover occurs. The reply comes at the first retransmission after the heal, the eighth firing of the RTO timer.
The client wrote to a new primary in 0 of the 11 counted runs. The group kept each write that a primary accepted. The old primary accepted 40 writes after the fault in the median run.
11 of the 11 counted runs are in the band of 51.446 s to 53.21 s. The median is 52.737 s, and its interval is 52.524 s to 52.865 s.
T12.defaults.6- Prediction
- no band
- Median
- 52.6423 s
- Runs
- 11 counted · 2 warm-ups
- Counted run
- Warm-up, not counted
- Median
This cell has no band. The client stays on the old primary while the fault holds, because ioredis has no timer for the group. After the lift, the old primary becomes a replica again only when a Sentinel reaches it. That occurs on the SYN backoff of its kernel, from a time that no document gives. The harness measures the time from the fault to the first write that succeeds.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 31.203 s | 30.192 s | holds |
+odown | 30 s to 31.305 s | 30.211 s | holds |
+try-failover | no band | 30.211 s | |
+elected-leader | 30.052 s to 31.409 s | 30.278 s | holds |
+selected-slave | 30.104 s to 31.509 s | 30.344 s | holds |
+promoted-slave | 30.156 s to 32.713 s | 31.269 s | holds |
+switch-master | 30.156 s to 32.815 s | 31.347 s | holds |
+convert-to-slave | no band | 52.536 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 8 accepted writes in all: 0 in the median run, and 4 at most.
The median is 52.642 s from the fault, and the counted runs measured 50.199 s to 53.138 s.
T12.defaults.7- Prediction
- 50.05 s to 50.403 s
- Median
- 50.2051 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 50.05 s to 50.403 s after the fault. The Sentinels fail over. After the thaw, they make the old primary a replica, and that closes the connection of the client. Then ioredis connects to the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 31.203 s | 30.229 s | holds |
+odown | 30 s to 31.305 s | 30.229 s | holds |
+try-failover | no band | 30.229 s | |
+elected-leader | 30.052 s to 31.409 s | 30.288 s | holds |
+selected-slave | 30.104 s to 31.509 s | 30.365 s | holds |
+promoted-slave | 30.156 s to 32.713 s | 31.271 s | holds |
+switch-master | 30.156 s to 32.815 s | 31.352 s | holds |
+convert-to-slave | no band | 50.03 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 2,189 accepted writes in all: 199 in the median run, and 199 at most. The old primary accepted 199 writes after the fault in the median run.
11 of the 11 counted runs are in the band of 50.049 s to 50.404 s. The median is 50.205 s, and its interval is 50.101 s to 50.259 s.
T12.defaults.8- Prediction
- 31.35 s to 39.347 s
- Median
- 32.5741 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 31.35 s to 39.347 s after the fault. The Sentinels fail over. Then the reconnect ladder of ioredis finds the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 30.205 s | 30.054 s | holds |
+odown | 30 s to 30.307 s | 30.057 s | holds |
+try-failover | no band | 30.057 s | |
+elected-leader | 30.052 s to 30.411 s | 30.131 s | holds |
+selected-slave | 30.104 s to 30.511 s | 30.197 s | holds |
+promoted-slave | 30.156 s to 31.715 s | 30.862 s | holds |
+switch-master | 30.156 s to 31.817 s | 30.916 s | holds |
+convert-to-slave | no band | 44.978 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group kept each write that a primary accepted. The client met ECONNREFUSED in 11 runs, first at 175.3 ms in the median run.
11 of the 11 counted runs are in the band of 31.349 s to 39.348 s. The median is 32.574 s, and its interval is 32.33 s to 32.864 s.
T12.defaults.9- Prediction
- 10.154 s to 12.013 s
- Median
- 11.4092 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 10.154 s to 12.013 s after the fault. The command SENTINEL FAILOVER starts the failover. Then the Sentinels make the old primary a replica, and that closes the connection of the client. Then ioredis connects to the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+try-failover | no band | 583 µs | |
+elected-leader | −1 ms to 103.7 ms | 57 ms | holds |
+selected-slave | 51 ms to 203.7 ms | 119.4 ms | holds |
+promoted-slave | 103 ms to 1.408 s | 1.1 s | holds |
+switch-master | 103 ms to 1.51 s | 1.177 s | holds |
+convert-to-slave | no band | 11.236 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 2,405 accepted writes in all: 219 in the median run, and 221 at most. The old primary accepted 223 writes after the fault in the median run.
11 of the 11 counted runs are in the band of 10.153 s to 12.014 s. The median is 11.409 s, and its interval is 11.376 s to 11.465 s.
T12.defaults.9- Prediction
- no band
- Median
- 1.2487 s
- Runs
- 11 counted · 2 warm-ups
- Counted run
- Warm-up, not counted
- Median
This cell has no band. The FAILOVER command of the server stops the writes and gives the primary to a replica. No machine document gives its time. The harness measures the time from the fault to the first write that succeeds.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+try-failover | no band | 494 µs | |
+elected-leader | no band | 44 ms | |
+selected-slave | no band | 109.1 ms | |
+promoted-slave | no band | 1.051 s | |
+switch-master | no band | 1.127 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group kept each write that a primary accepted. The old primary accepted 4 writes after the fault in the median run.
The median is 1.249 s from the fault, and the counted runs measured 1.211 s to 1.324 s.
T12.defaults.10- Prediction
- 31.35 s to 39.397 s
- Median
- 32.6683 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 31.35 s to 39.397 s after the fault. The primary refuses each connection, and the Sentinels fail over. Then the reconnect ladder of ioredis finds the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 31.203 s | 30.245 s | holds |
+odown | 30 s to 31.305 s | 30.25 s | holds |
+try-failover | no band | 30.25 s | |
+elected-leader | 30.052 s to 31.409 s | 30.317 s | holds |
+selected-slave | 30.104 s to 31.509 s | 30.374 s | holds |
+promoted-slave | 30.156 s to 32.713 s | 30.915 s | holds |
+switch-master | 30.156 s to 32.815 s | 30.971 s | holds |
+convert-to-slave | no band | 45.093 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group kept each write that a primary accepted. The client met ECONNRESET in 11 runs, first at 13.8 ms in the median run. The client met ECONNREFUSED in 11 runs, first at 200.6 ms in the median run.
11 of the 11 counted runs are in the band of 31.349 s to 39.398 s. The median is 32.668 s, and its interval is 32.537 s to 32.866 s.
The borders
Section titled “The borders”These cells put a freeze on each side of down-after-milliseconds, and a failover on each side of the give-up of the offline queue.
T12.border-off.1- Prediction
- 29 s to 29.012 s
- Median
- 29.0032 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 29 s to 29.012 s after the fault. The thaw comes before down-after-milliseconds. Thus no failover occurs, and the same primary answers again.
The client wrote to a new primary in 0 of the 11 counted runs. The group kept each write that a primary accepted. The old primary accepted 41 writes after the fault in the median run.
11 of the 11 counted runs are in the band of 28.999 s to 29.013 s. The median is 29.003 s, and its interval is 29.003 s to 29.004 s.
T12.border-off.2- Prediction
- 43.05 s to 43.403 s
- Median
- 43.1802 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 43.05 s to 43.403 s after the fault. The Sentinels fail over. After the thaw, they make the old primary a replica, and that closes the connection of the client. Then ioredis connects to the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 30 s to 31.203 s | 30.177 s | holds |
+odown | 30 s to 31.305 s | 30.177 s | holds |
+try-failover | no band | 30.178 s | |
+elected-leader | 30.052 s to 31.409 s | 30.264 s | holds |
+selected-slave | 30.104 s to 31.509 s | 30.35 s | holds |
+promoted-slave | 30.156 s to 32.713 s | 31.203 s | holds |
+switch-master | 30.156 s to 32.815 s | 31.287 s | holds |
+convert-to-slave | no band | 43.023 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 2,188 accepted writes in all: 199 in the median run, and 199 at most. The old primary accepted 199 writes after the fault in the median run.
11 of the 11 counted runs are in the band of 43.049 s to 43.404 s. The median is 43.18 s, and its interval is 43.085 s to 43.257 s.
T12.border-off.15- Prediction
- 69.157 s to 75.95 s
- Median
- 73.465 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 69.157 s to 75.95 s after the fault. The Sentinels fail over. Then the reconnect ladder of ioredis finds the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 69 s to 69.205 s | 69.045 s | holds |
+odown | 69 s to 69.307 s | 69.045 s | holds |
+try-failover | no band | 69.046 s | |
+elected-leader | 69.052 s to 69.411 s | 69.108 s | holds |
+selected-slave | 69.104 s to 69.511 s | 69.186 s | holds |
+promoted-slave | 69.156 s to 70.715 s | 69.78 s | holds |
+switch-master | 69.156 s to 70.817 s | 69.882 s | holds |
+convert-to-slave | no band | 85.917 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group kept each write that a primary accepted. The client met ECONNREFUSED in 11 runs, first at 183.5 ms in the median run. The client met ECONNRESET in 1 run, first at 2.21 ms in the median run.
11 of the 11 counted runs are in the band of 69.156 s to 75.951 s. The median is 73.465 s, and its interval is 73.103 s to 73.769 s.
T12.border-off.16- Prediction
- 76.35 s to 86.408 s
- Median
- 78.6407 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that a write of the client succeeds again 76.35 s to 86.408 s after the fault. The Sentinels fail over. Then the reconnect ladder of ioredis finds the new primary.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+sdown | 76 s to 76.205 s | 76.053 s | holds |
+odown | 76 s to 76.307 s | 76.068 s | holds |
+try-failover | no band | 76.068 s | |
+elected-leader | 76.052 s to 76.411 s | 76.125 s | holds |
+selected-slave | 76.104 s to 76.511 s | 76.208 s | holds |
+promoted-slave | 76.156 s to 77.715 s | 76.697 s | holds |
+switch-master | 76.156 s to 77.817 s | 76.797 s | holds |
+convert-to-slave | no band | 90.979 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group kept each write that a primary accepted. The client met ECONNREFUSED in 11 runs, first at 172.5 ms in the median run. The client met MaxRetriesPerRequestError in 11 runs, first at 73.494 s in the median run.
11 of the 11 counted runs are in the band of 76.349 s to 86.409 s. The median is 78.641 s, and its interval is 78.227 s to 78.856 s.
The calibration of the stamps
Section titled “The calibration of the stamps”The observer subscribes to each Sentinel, and it stamps each event that it reads. The calibration compares each stamp with the write of the Sentinel, as the prober records that write. The first calibration, on 2026-10-16, read 397 stamps with a maximum of 0.705 ms. The catalog took that time as the error of each stage band.
CAL- Prediction
- no band
- Median
- 11.3129 s
- Runs
- 11 counted · 2 warm-ups
- Counted run
- Warm-up, not counted
- Median
This cell has no band. This cell is a calibration. It compares each stamp of the observer with the write of the Sentinel that the observer read. The harness measures the time from the fault to the first write that succeeds.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
+try-failover | no band | 686 µs | |
+elected-leader | −1 ms to 103.7 ms | 19.5 ms | holds |
+selected-slave | 51 ms to 203.7 ms | 113.1 ms | holds |
+promoted-slave | 103 ms to 1.408 s | 1.043 s | holds |
+switch-master | 103 ms to 1.51 s | 1.127 s | holds |
+convert-to-slave | no band | 11.186 s |
The client wrote to a new primary in 11 of the 11 counted runs. The group lost 2,386 accepted writes in all: 218 in the median run, and 219 at most. The old primary accepted 221 writes after the fault in the median run.
The median is 11.313 s from the fault, and the counted runs measured 10.858 s to 11.492 s.
Where the data comes from
Section titled “Where the data comes from”Each runner wrote a raw record of its cell. A record has the cell and the manifests of its environments. It also has each warm-up run, and each run with its kernel records and the timeline of its group. The script packages/site/scripts/sentinel.ts reads each record with the code of the harness, and it stops when a verdict disagrees with the summary of the run. It writes the copy that this page shows, and that copy names no machine. The cells and their predictions are in the catalogs.