From c10d64e71d2016abef97af3920421abbbfd2a6d9 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 26 Nov 2026 04:05:58 -0800 Subject: [PATCH] docs: replicated volumes: one factor per cluster, and when they fail over --expected-slots-per-volume is one number for the cluster: one replicated volume with another slot count stops assignment for all of them. Single- replica volumes can share a --cluster-spec cluster with 3-replica ones; 2- and 3-replica volumes cannot share one; a static --topology holds one factor. A replicated volume fails over by itself only under --cluster-spec with the lifecycle loop on; on a static --topology the operator runs sw-block ops failover and reruns it after a refused fencing round. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 4 ++++ seaweed-block/docs/standalone-deployment.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index 28c014a2ad..1f4eb17934 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -218,6 +218,10 @@ measured up to 15 s at 32 volumes with the default 3 slots. ## When a host is lost +The steps below are for a single-replica volume. For a replicated volume, see +[replicated volumes in this release](standalone-deployment.md): one replicated +factor per cluster, and when a replicated volume fails over by itself. + 1. Make sure the lost host stays down for this volume. The product does not power off an old holder. - If it comes back after the move, blockmaster refuses its lease: it does not serve, logs `exiting status=78 reason=moved` and exits 78, and the example unit does not start it again diff --git a/seaweed-block/docs/standalone-deployment.md b/seaweed-block/docs/standalone-deployment.md index b053a17e00..2329cb0888 100644 --- a/seaweed-block/docs/standalone-deployment.md +++ b/seaweed-block/docs/standalone-deployment.md @@ -146,6 +146,26 @@ Do these steps before you start blockvolume: --lifecycle-product-loop-interval 100ms --listen 127.0.0.1:9180 ``` + **Replicated volumes in this release:** + - **One replicated factor per cluster.** `--expected-slots-per-volume` is one + number for the whole cluster, and blockmaster checks every replicated + volume against it. One volume with another slot count stops assignment + for all of them; it shows only as a controller error on every tick. + - Under `--cluster-spec`, single-replica volumes can share a cluster with + 3-replica volumes (`--expected-slots-per-volume 3`). + - 2-replica and 3-replica volumes cannot share a cluster. + - A static `--topology` holds one factor only. + - **Failover.** blockmaster fails a replicated volume over by itself only + under `--cluster-spec` with the lifecycle loop on. The same loop also + continues a fencing round that did not complete. + - On a static `--topology` nothing fails over by itself: run + `sw-block ops failover`. + - It needs blockmaster started with `--failback-runtime-rpc` and an admin + client certificate (`SW_BLOCK_TLS_CERT`, `SW_BLOCK_TLS_KEY`, + `SW_BLOCK_TLS_CA`). + - If its fencing round is refused, run the command again. + `sw-block ops failover -h` describes the round and its exit codes. + 3. **Start blockvolume with the identity of one slot.** `--volume-id`, `--replica-id` and `--server-id` (`SWB_VOLUME_ID`, `SWB_REPLICA_ID`, `SWB_SERVER_ID`) must equal one slot of the file: `v1`, `r1`, `s1` here.