Files
seaweedfs/seaweed-block/cmd/blockmaster
pingqiuandClaude Opus 5.5 e57f399c07 feat: detect master journal sharing and alarm on lease headroom
A volume whose durable root sits on the authority store's file system
shares its jbd2 journal: under a WAL fsync storm the lease extensions
lag, grants clamp to the durable horizon and leases run out.

- core/storeident: (machine-id, st_dev) identity of a directory; unknown
  never matches.
- Heartbeats carry the durable root's identity (machine_id,
  durable_root_dev); the master compares it with its authority store,
  logs and counts co-located nodes once per detection.
- --strict-journal-isolation (default off = alarm only): refuses
  heartbeats of a co-located node that serves no volume (durable state
  decides), and refuses PlaceWorkspace/MoveWorkspace and new product-loop
  placements onto co-located nodes.
- Publisher: headroom alarm while an extension is pending and headroom
  < 1.125 TTL (before the first clamp), clamp counters (total, last
  minute), min headroom at grants, lazy per-minute summary;
  WorkspaceLeaseStats snapshot.
- --status-listen (loopback only): GET /status/workspace-lease JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:10:44 -08:00
..

Cluster imports and desired volumes

With --lifecycle-store, authority publication requires a lifecycle VolumeRecord. A placement intent or a remote chunk catalog VOLUME alone is not that record.

--cluster-spec registers each volume with positive size_bytes and its replication_factor before importing placement and starting publication. The registration is durable and idempotent. A different size/RF from an existing record refuses startup; existing protocol/transport and Kubernetes metadata are preserved. Volume registration records desired state, not authority or an epoch.

For a legacy cluster spec without size_bytes, call the LifecycleService CreateVolume RPC (the CSI create path also does this) before expecting the imported placement to publish. --lifecycle-placement-seed is placement-only: it has no capacity field, so the same CreateVolume prerequisite applies. The master refuses missing records with the volume ID and this instruction; it does not infer capacity or bypass the publication guard.

Legacy --topology without a lifecycle store keeps its existing behaviour.