From be7b2c1fd55cc0fe1774255a996ea7a5314f26d8 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 26 Nov 2026 16:44:28 -0800 Subject: [PATCH] docs: delete after a dependents refusal, failover time, profile change order - A volume-delete refused with snapshot_has_dependents has already reserved the volume: it does not serve again; delete or release the restored volume, then rerun with the same request id. - A sync-quorum volume gets its new primary about 30 to 35 s after its host is lost with default flags (freshness window, then two probe rounds of at most 2 s each). - The ack profile change order: stop the replicated volumes, change both flags, restart blockmaster, start the volumes. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/standalone-deployment.md | 12 +++++++++--- seaweed-block/docs/volume-lifecycle.md | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/seaweed-block/docs/standalone-deployment.md b/seaweed-block/docs/standalone-deployment.md index cb215ace67..f75a1c87db 100644 --- a/seaweed-block/docs/standalone-deployment.md +++ b/seaweed-block/docs/standalone-deployment.md @@ -166,6 +166,8 @@ Do these steps before you start blockvolume: whose line is assigned under another profile than its own does not serve and logs `ack profile mismatch: this volume runs --replication-ack X, its replicated line is assigned under Y; restart it with the master's profile`. + The order: stop every replicated volume, change both flags, restart + blockmaster, then start the volumes. ```bash blockmaster --authority-store /var/lib/sw-block-master/authority \ @@ -196,14 +198,18 @@ Do these steps before you start blockvolume: them, and shows only as a controller error on every tick. - **Failover.** Under `--cluster-spec` with the lifecycle loop on, blockmaster replaces a lost primary of a `sync-quorum` or `sync-all` - volume by itself (`core/host/master/product_loop.go`, - `applyPromotionEvidenceGate`). + volume by itself. - A primary whose heartbeat is stale (its host is off, or blockmaster cannot reach it), or that answers that it is not ready, is replaced through a fencing round. blockmaster fences the other replicas at the next epoch and promotes one only when enough of them answer. With `--replication-ack` `sync-quorum` or `sync-all`, the new primary holds - every write the old one acknowledged. + every write the old one acknowledged. With default flags the new + primary is assigned about 30 to 35 s after the old host is lost: its + heartbeat counts as stale after `--freshness-window` (30 s), then the + probe round and the fencing round wait at most 2 s each, on the + lifecycle loop's next tick. The guest's I/O waits for that time plus + its own reconnect to the new primary. - With `best-effort` (the default of `--replication-ack`) a write is acknowledged after the primary's own sync, with no replica, so blockmaster does not replace a lost primary by itself: the volume diff --git a/seaweed-block/docs/volume-lifecycle.md b/seaweed-block/docs/volume-lifecycle.md index 6ed786a63d..7389d50253 100644 --- a/seaweed-block/docs/volume-lifecycle.md +++ b/seaweed-block/docs/volume-lifecycle.md @@ -524,7 +524,7 @@ follow from that order: | detach answers `detach_aborted` | Nothing was published; the volume serves here again | Retry step 3 | | detach answers `outcome_unknown` | The seal may have landed; I/O stays stopped | Retry step 3: it settles the outcome | | volume-delete: `not_admitted: ... workspace: deletion refused before persistence: workspace delete: live until