mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
seaweed-block: document the waiting_for_master status reason
NotReadyReason's field text, and the status schema generated from it, did not name the new reason, which /status reports first. The operations manual's typed-status table gets a row for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
71f5b6f440
commit
cda91c24ea
3 files changed
+9
-7
No files matched your search
@@ -204,12 +204,13 @@ type StatusProjection struct {
|
||||
// primary, its local durable backend admits I/O, and it may serve guest
|
||||
// I/O (INV-FE-PRIMARY-READY-OPERATIONAL-001).
|
||||
FrontendPrimaryReady bool
|
||||
// NotReadyReason says why FrontendPrimaryReady is false, first match: a
|
||||
// workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the
|
||||
// local durable backend admits no I/O (its evidence: attach pending,
|
||||
// fenced, detached) or has no status for the volume; the frontend target
|
||||
// is not listening yet; this replica is not the healthy primary. Empty
|
||||
// when ready.
|
||||
// NotReadyReason says why FrontendPrimaryReady is false, first match: the
|
||||
// start waits for blockmaster to answer before it opens the volume's
|
||||
// store (NotReadyWaitingForMaster); a workspace primary holds no granted
|
||||
// lease now (NotReadyLeaseNotHeld); the local durable backend admits no
|
||||
// I/O (its evidence: attach pending, fenced, detached) or has no status
|
||||
// for the volume; the frontend target is not listening yet; this replica
|
||||
// is not the healthy primary. Empty when ready.
|
||||
NotReadyReason string `json:",omitempty"`
|
||||
// AuthorityRole is primary, superseded or unknown.
|
||||
AuthorityRole string
|
||||
|
||||
@@ -742,6 +742,7 @@ Volume status (`/status?volume=<id>`, heartbeats, cluster status):
|
||||
| What you see | Meaning | What to do |
|
||||
|---|---|---|
|
||||
| `NotReadyReason: lease_not_held`, `MasterWait.Reason: unreachable` | The holder cannot reach blockmaster, so it has no lease and serves nothing. Until its lease expires (about 15-20 s after its last renewal) the old process still reports `Healthy: true`. Then it exits 75 and systemd restarts it 5 s later: the status page is gone for those seconds, the restarted process shows these fields, and the guest reconnects by itself. | Start or reach blockmaster. The volume serves again by itself. |
|
||||
| `NotReadyReason: waiting_for_master` | A plain walstore holder started while blockmaster gives no reply. It waits in the process before it opens or creates its store, writes nothing, and logs the wait every 30 s; the unit stays active and does not restart. | Start or reach blockmaster. The holder opens its store and serves by itself. |
|
||||
| `RecoveryWait: awaiting_authority` (recovery-progress `AwaitingAuthority: true`) | Recovery finished, and the volume waits for blockmaster's assignment. The startup window is paused. | As above. |
|
||||
| `recovery_stalled` | No recovery step completed for a whole startup window. | Look for disk starvation (section 8). The volume serves no I/O and continues once the disk serves it. |
|
||||
| `binary_too_old` | The holder's binary reads an older format than the cluster's, so it gets no assignment. | Upgrade that host to v1.1 (section 7). |
|
||||
|
||||
@@ -33,7 +33,7 @@ The volume's authority and health projection. Go type `volume.StatusProjection`.
|
||||
| `Memory.RSSBytes` | uint64 | resident set size from /proc/self/status (VmRSS); 0 off Linux |
|
||||
| `Memory.AnonymousRSSBytes` | uint64 | anonymous resident memory (RssAnon); 0 off Linux |
|
||||
| `FrontendPrimaryReady` | bool | FrontendPrimaryReady: this replica is the healthy, non-superseded primary, its local durable backend admits I/O, and it may serve guest I/O (INV-FE-PRIMARY-READY-OPERATIONAL-001). |
|
||||
| `NotReadyReason` | string | NotReadyReason says why FrontendPrimaryReady is false, first match: a workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the local durable backend admits no I/O (its evidence: attach pending, fenced, detached) or has no status for the volume; the frontend target is not listening yet; this replica is not the healthy primary. Empty when ready. (omitted when empty) |
|
||||
| `NotReadyReason` | string | NotReadyReason says why FrontendPrimaryReady is false, first match: the start waits for blockmaster to answer before it opens the volume's store (NotReadyWaitingForMaster); a workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the local durable backend admits no I/O (its evidence: attach pending, fenced, detached) or has no status for the volume; the frontend target is not listening yet; this replica is not the healthy primary. Empty when ready. (omitted when empty) |
|
||||
| `AuthorityRole` | string | AuthorityRole is primary, superseded or unknown. |
|
||||
| `ReplicationRole` | string | ReplicationRole is none (a primary), recovering, not_ready, replica_ready or unknown. |
|
||||
| `RoleAdmissionFailure` | string | RoleAdmissionFailure (G1) explains a not-Healthy projection caused by a failed role call on the replica listener; empty otherwise. (omitted when empty) |
|
||||
|
||||
Reference in new issue
Block a user