docs(block): the restart budget names its source bounds and each row's state filesystem

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-12-05 21:32:21 -08:00
1 parent d6d937ac76
commit cafdd9ff4a
1 file changed
+18 -14
+18 -14
View File
@@ -313,23 +313,27 @@ blockmaster reads the cluster spec only when it starts. After editing the spec,
follow the state-storage and low-write-load guidance in section 1 before restarting.
**The restart budget.** Running volumes keep serving through a blockmaster restart only if blockmaster serves
again before their leases run out. With the default settings, each holder renews its lease at least every 10 s and
may serve until 20 s after its last renewal. So a restart that serves again within 10 s interrupts no volume, and
one that takes longer than 20 s fences every running volume. A fenced volume stops I/O, its holder exits 75 and is
started again by its unit, and it serves again once blockmaster is back and past its barrier, at least 50 s after the
restart, with its data.
again before their leases run out. With the default settings, a holder may serve until 20 s after its last grant
(the 30 s lease less half the 20 s clock-skew bound) and renews after a third of the time it has left, so when
blockmaster stops, each running holder has between 13.3 s and 20 s left. A restart that serves again within 13.3 s
interrupts no volume; after 20 s every running volume has fenced. A fenced volume stops I/O, its holder exits 75 and
is started again by its unit, and it serves again once blockmaster is back and past its barrier, at least 50 s after
the restart, with its data.
The time to serve again grows with the number of volumes in the cluster spec and with the write load on
blockmaster's state filesystem. Measured restarts to serving on one test host:
The time to serve again grows with the number of volumes in the cluster spec and with the write load on the
filesystem that holds blockmaster's state directory. Measured restarts to serving on test hosts:
| Volumes in the cluster spec | v1.1.1 | v1.1.2 and later |
|---|---|---|
| 33 | 7.2 s | |
| 999 | 44.6 s (every running volume fenced) | 5.9 s |
| Version | State filesystem | Volumes in the cluster spec | Restart to serving |
|---|---|---|---|
| v1.1.1 | quiet (no extra write load) | 33 | 7.2 s |
| v1.1.1 | quiet (no extra write load) | 999 | 44.6 s (every running volume fenced) |
| v1.1.2 | quiet (no extra write load) | 999 | 5.9 s |
| v1.1.2 | dedicated, under the buffered-write load of section 1 | as in section 1 | warm 1.6 s, cold 2.5 s (medians; warm maximum 13.2 s) |
| v1.1.2 | shared, under the same load | as in section 1 | warm 31.3 s, cold 122.9 s (medians) |
These are measurements, not a promise: a busy state filesystem adds to them (section 1). To stay within the budget,
keep the state directory on its own filesystem, restart at low write load on it, and with many volumes in the spec
restart in a maintenance window.
The budget holds only with the state directory on its own filesystem: on a shared filesystem under write load, a
restart outlasts every lease. These are measurements, not a promise. Keep the state directory on its own filesystem
(section 1), restart at low write load on it, and with many volumes in the spec restart in a maintenance window.
blockmaster must run under systemd or an equivalent restart supervisor. A node, placement
or volume lifecycle record write or recovery-directory sync failure attempts one `ERROR` naming the store,