Skip to content

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
9 hold4 measured

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.

  • At the defaults, the Sentinels name a new primary 30.9 s after a crash. A fin at the primary gives +sdown at 30.054 s and +switch-master at 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 FAILOVER loses 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-milliseconds holds 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. With down-after-milliseconds at 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 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.

CellNew primaryLost writes in a runWrites to the old primary
partition:partial, the primary cut from the Sentinels and the replicas, its clients with it, 40 s
T12.defaults.1
11 of 111,041, at most 1,0471,041, at most 1,048
partition:partial, the primary cut from the clients, a 40 s stall
T12.defaults.1
0 of 11none40, at most 41
blackhole at the primary, 40 s
T12.defaults.6
11 of 110, at most 40, at most 4
freeze-process at the primary, 40 s
T12.defaults.7
11 of 11199, at most 199199, at most 199
fin at the primary
T12.defaults.8
11 of 11nonenone
event:planned, SENTINEL FAILOVER
T12.defaults.9
11 of 11219, at most 221223, at most 224
event:planned, SENTINEL FAILOVER COORDINATED
T12.defaults.9
11 of 11none4, at most 5
rst at the primary: each peer refused
T12.defaults.10
11 of 11nonenone
freeze-process at the primary, 29 s, inside down-after-milliseconds 30 s
T12.border-off.1
0 of 11none41, at most 41
freeze-process at the primary, 33 s, outside down-after-milliseconds 30 s
T12.border-off.2
11 of 11199, at most 199199, at most 199
fin at the primary, down-after-milliseconds 69 s, inside the give-up of the offline queue
T12.border-off.15
11 of 11nonenone
fin at the primary, down-after-milliseconds 76 s, outside the give-up of the offline queue
T12.border-off.16
11 of 11nonenone
the stamps of the observer of the Sentinels, event:planned SENTINEL FAILOVER
CAL
11 of 11218, at most 219221, at most 224

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.

partition:partial, the primary cut from the Sentinels and the replicas, its clients with it, 40 sT12.defaults.1
measured
Prediction
no band
Median
52.7802 s
Runs
11 counted · 2 warm-ups
50 s51 s52 s53 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 31.203 s30.345 sholds
+odown30 s to 31.305 s30.345 sholds
+try-failoverno band30.345 s
+elected-leader30.052 s to 31.409 s30.428 sholds
+selected-slave30.104 s to 31.509 s30.491 sholds
+promoted-slave30.156 s to 32.713 s31.368 sholds
+switch-master30.156 s to 32.815 s31.441 sholds
+convert-to-slaveno band52.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.

partition:partial, the primary cut from the clients, a 40 s stallT12.defaults.1
holds
Prediction
51.447 s to 53.209 s
Median
52.737 s
Runs
11 counted · 2 warm-ups
51.5 s52 s52.5 s53 s

  • 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.

blackhole at the primary, 40 sT12.defaults.6
measured
Prediction
no band
Median
52.6423 s
Runs
11 counted · 2 warm-ups
50 s51 s52 s53 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 31.203 s30.192 sholds
+odown30 s to 31.305 s30.211 sholds
+try-failoverno band30.211 s
+elected-leader30.052 s to 31.409 s30.278 sholds
+selected-slave30.104 s to 31.509 s30.344 sholds
+promoted-slave30.156 s to 32.713 s31.269 sholds
+switch-master30.156 s to 32.815 s31.347 sholds
+convert-to-slaveno band52.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.

freeze-process at the primary, 40 sT12.defaults.7
holds
Prediction
50.05 s to 50.403 s
Median
50.2051 s
Runs
11 counted · 2 warm-ups
50.1 s50.2 s50.3 s50.4 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 31.203 s30.229 sholds
+odown30 s to 31.305 s30.229 sholds
+try-failoverno band30.229 s
+elected-leader30.052 s to 31.409 s30.288 sholds
+selected-slave30.104 s to 31.509 s30.365 sholds
+promoted-slave30.156 s to 32.713 s31.271 sholds
+switch-master30.156 s to 32.815 s31.352 sholds
+convert-to-slaveno band50.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.

fin at the primaryT12.defaults.8
holds
Prediction
31.35 s to 39.347 s
Median
32.5741 s
Runs
11 counted · 2 warm-ups
32 s34 s36 s38 s40 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 30.205 s30.054 sholds
+odown30 s to 30.307 s30.057 sholds
+try-failoverno band30.057 s
+elected-leader30.052 s to 30.411 s30.131 sholds
+selected-slave30.104 s to 30.511 s30.197 sholds
+promoted-slave30.156 s to 31.715 s30.862 sholds
+switch-master30.156 s to 31.817 s30.916 sholds
+convert-to-slaveno band44.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.

event:planned, SENTINEL FAILOVERT12.defaults.9
holds
Prediction
10.154 s to 12.013 s
Median
11.4092 s
Runs
11 counted · 2 warm-ups
10 s10.5 s11 s11.5 s12 s

  • 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.

StagePredictionMedianVerdict
+try-failoverno band583 µs
+elected-leader−1 ms to 103.7 ms57 msholds
+selected-slave51 ms to 203.7 ms119.4 msholds
+promoted-slave103 ms to 1.408 s1.1 sholds
+switch-master103 ms to 1.51 s1.177 sholds
+convert-to-slaveno band11.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.

event:planned, SENTINEL FAILOVER COORDINATEDT12.defaults.9
measured
Prediction
no band
Median
1.2487 s
Runs
11 counted · 2 warm-ups
1.5 s2 s

  • 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.

StagePredictionMedianVerdict
+try-failoverno band494 µs
+elected-leaderno band44 ms
+selected-slaveno band109.1 ms
+promoted-slaveno band1.051 s
+switch-masterno band1.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.

rst at the primary: each peer refusedT12.defaults.10
holds
Prediction
31.35 s to 39.397 s
Median
32.6683 s
Runs
11 counted · 2 warm-ups
32 s34 s36 s38 s40 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 31.203 s30.245 sholds
+odown30 s to 31.305 s30.25 sholds
+try-failoverno band30.25 s
+elected-leader30.052 s to 31.409 s30.317 sholds
+selected-slave30.104 s to 31.509 s30.374 sholds
+promoted-slave30.156 s to 32.713 s30.915 sholds
+switch-master30.156 s to 32.815 s30.971 sholds
+convert-to-slaveno band45.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.

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.

freeze-process at the primary, 29 s, inside down-after-milliseconds 30 sT12.border-off.1
holds
Prediction
29 s to 29.012 s
Median
29.0032 s
Runs
11 counted · 2 warm-ups
29 s29.005 s29.01 s

  • 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.

freeze-process at the primary, 33 s, outside down-after-milliseconds 30 sT12.border-off.2
holds
Prediction
43.05 s to 43.403 s
Median
43.1802 s
Runs
11 counted · 2 warm-ups
43.1 s43.2 s43.3 s43.4 s

  • 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.

StagePredictionMedianVerdict
+sdown30 s to 31.203 s30.177 sholds
+odown30 s to 31.305 s30.177 sholds
+try-failoverno band30.178 s
+elected-leader30.052 s to 31.409 s30.264 sholds
+selected-slave30.104 s to 31.509 s30.35 sholds
+promoted-slave30.156 s to 32.713 s31.203 sholds
+switch-master30.156 s to 32.815 s31.287 sholds
+convert-to-slaveno band43.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.

fin at the primary, down-after-milliseconds 69 s, inside the give-up of the offline queueT12.border-off.15
holds
Prediction
69.157 s to 75.95 s
Median
73.465 s
Runs
11 counted · 2 warm-ups
70 s72 s74 s76 s

  • 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.

StagePredictionMedianVerdict
+sdown69 s to 69.205 s69.045 sholds
+odown69 s to 69.307 s69.045 sholds
+try-failoverno band69.046 s
+elected-leader69.052 s to 69.411 s69.108 sholds
+selected-slave69.104 s to 69.511 s69.186 sholds
+promoted-slave69.156 s to 70.715 s69.78 sholds
+switch-master69.156 s to 70.817 s69.882 sholds
+convert-to-slaveno band85.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.

fin at the primary, down-after-milliseconds 76 s, outside the give-up of the offline queueT12.border-off.16
holds
Prediction
76.35 s to 86.408 s
Median
78.6407 s
Runs
11 counted · 2 warm-ups
80 s85 s

  • 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.

StagePredictionMedianVerdict
+sdown76 s to 76.205 s76.053 sholds
+odown76 s to 76.307 s76.068 sholds
+try-failoverno band76.068 s
+elected-leader76.052 s to 76.411 s76.125 sholds
+selected-slave76.104 s to 76.511 s76.208 sholds
+promoted-slave76.156 s to 77.715 s76.697 sholds
+switch-master76.156 s to 77.817 s76.797 sholds
+convert-to-slaveno band90.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 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.

the stamps of the observer of the Sentinels, event:planned SENTINEL FAILOVERCAL
measured
Prediction
no band
Median
11.3129 s
Runs
11 counted · 2 warm-ups
10.8 s11 s11.2 s11.4 s

  • 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.

StagePredictionMedianVerdict
+try-failoverno band686 µs
+elected-leader−1 ms to 103.7 ms19.5 msholds
+selected-slave51 ms to 203.7 ms113.1 msholds
+promoted-slave103 ms to 1.408 s1.043 sholds
+switch-master103 ms to 1.51 s1.127 sholds
+convert-to-slaveno band11.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.

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.