mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
8837c25b97
commit
be7b2c1fd5
2 files changed
+10
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 <time>: ...` | The volume's lease is still live: it was not revoked and acknowledged, or its lease horizon has not passed; nothing was persisted | "Delete a volume", step 2, then run it again after the horizon |
|
||||
| volume-delete: `snapshot_has_dependents: ... layout: a snapshot has dependents: snapshot "s1" has 1` | A restored volume still depends on that snapshot; ordinary snapshots never refuse a delete (they are deleted with the volume); nothing was deleted | "Delete a volume", step 3 |
|
||||
| volume-delete: `snapshot_has_dependents: ... layout: a snapshot has dependents: snapshot "s1" has 1` | A restored volume still depends on that snapshot (ordinary snapshots never refuse a delete: they are deleted with the volume). The delete had already reserved the volume: it does not serve again, and nothing was deleted yet | Delete the restored volume, or release its dependence, then run the same volume-delete again with the same `--request-id` ("Delete a volume", step 3) |
|
||||
| snapshot: `snapshot_exists ... this request's attempt was aborted; delete the name to reuse it` | An earlier attempt of this request did not finish and was swept | `snapshot-delete` the name, then take the snapshot again |
|
||||
| snapshot: `snapshot_deleting ... is being deleted; wait for the delete to finish, then reuse the name` | The request was repeated while its snapshot is being deleted | Wait for the delete to finish; take the snapshot again if it is still wanted |
|
||||
| revoke: `workspace revoke: no matching lease` | `--replica`/`--epoch` are not the current holder | Read them again with `show` |
|
||||
|
||||
Reference in new issue
Block a user