mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
The master read HEAD two ways with two settings: the layout catalog (filer gRPC, --chunk-filer) for create and restore, and plain filer HTTP ?metadata=true (--workspace-head-base-url) for the workspace move admission and the revoke ACK. The workspace reader now reads through the catalog it already dials: BCatalog.ReadHeadObserved returns HEAD, decoded by the same DecodeLayoutHeadEntry, with the entry's modification time from that same lookup (seconds, as the HTTP metadata gave it). The proof mapping is unchanged: identity from the master's lifecycle record, deleting, unclaimed, detached, generation, epoch, holder and position; an absent HEAD refuses with ErrHeadAbsent. The HTTP reader and --workspace-head-base-url are deleted, with the unit's and the env file's setting and the docs. The master tests run the same refusal table against a catalog on the in-memory filer (the HTTP-only redirect and envelope cases have no counterpart). The fixtures that passed the flag give the master the filer flags instead; the head-size and F1 ladder masters had none and could not dial the catalog at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2.3 KiB
Bash
46 lines
2.3 KiB
Bash
# Seaweed Block: example settings for blockmaster
|
|
# (deploy/systemd/sw-blockmaster.service). Install as
|
|
# /etc/sw-block/blockmaster.env.
|
|
#
|
|
# The binaries are configured by command-line flags. The SWB_* variables in
|
|
# this file exist only so the example unit can build those flags; blockmaster
|
|
# does not read them. Each entry names the flag it feeds, the flag's default,
|
|
# and what it means.
|
|
#
|
|
# State: the unit's StateDirectory=sw-block-master creates
|
|
# /var/lib/sw-block-master, owned by the sw-block user. Only blockmaster
|
|
# writes there.
|
|
|
|
# ---------------------------------------------------------------- blockmaster
|
|
|
|
# --authority-store (required, no default). Durable authority store directory:
|
|
# assignments, epochs, leases. Losing it loses the epoch history.
|
|
SWB_MASTER_AUTHORITY_STORE=/var/lib/sw-block-master/authority
|
|
# --listen (default 127.0.0.1:0). gRPC listen address. The control plane has
|
|
# no authentication; keep it on loopback or a trusted network.
|
|
SWB_MASTER_LISTEN=127.0.0.1:9180
|
|
# --topology (default empty: no assignments are minted). Accepted-topology
|
|
# YAML: volumes and their replica slots. See deploy/config/topology.yaml.
|
|
SWB_MASTER_TOPOLOGY=/etc/sw-block/topology.yaml
|
|
# --expected-slots-per-volume (default 3). Replica slots per volume; must match
|
|
# the topology. 1 for a single-replica volume.
|
|
SWB_MASTER_EXPECTED_SLOTS=1
|
|
# --freshness-window (default 30s). How long a server's heartbeat stays fresh.
|
|
SWB_MASTER_FRESHNESS_WINDOW=30s
|
|
# --pending-grace (default 1s). Startup grace before a missing observation is
|
|
# reported as unsupported.
|
|
SWB_MASTER_PENDING_GRACE=1s
|
|
# --workspace-rpc (default false). Enable the workspace lease, revocation and
|
|
# move RPCs (agent workspace disks, proof of concept). blockmaster then reads
|
|
# HEAD through the layout catalog: set --chunk-filer (and --chunk-path when
|
|
# it is not the default) in SWB_MASTER_EXTRA_ARGS.
|
|
SWB_MASTER_WORKSPACE_RPC=false
|
|
# --workspace-max-clock-skew (default 20s; must be >10.1s and <60s). Host leases
|
|
# shorten by half of it; forced moves wait the full bound.
|
|
SWB_MASTER_WORKSPACE_MAX_CLOCK_SKEW=20s
|
|
# Extra blockmaster flags, split on spaces.
|
|
# A standalone workspace volume (lease, planned hand-over) needs --cluster-spec,
|
|
# --lifecycle-store and the --workspace-* flags here: see docs/volume-lifecycle.md.
|
|
# Kubernetes launcher/runtime flags are configured separately by the Helm chart.
|
|
SWB_MASTER_EXTRA_ARGS=
|