diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 3b0aa80b88..5fd6419d94 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -312,6 +312,25 @@ blockmaster reads the cluster spec only when it starts. After editing the spec, `sudo systemctl restart sw-blockmaster`. A restart that outlasts the running volumes' leases makes them fence; 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. + +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: + +| 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 | + +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. + 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, record and error, ending with `exiting so the supervisor restarts from durable state`,