mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
docs(block): the restart budget for blockmaster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee547ef399
commit
d6d937ac76
1 file changed
+19
@@ -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`,
|
||||
|
||||
Reference in new issue
Block a user