Files
seaweedfs/seaweed-block/deploy/systemd/sw-blockmaster.service
T
pingqiuandClaude Opus 5.5 663ab3b2c3 docs: README v2 with standalone deployment, Kubernetes status and workspace measurements
The README is rewritten to about 230 lines. Detail that used to live in the
README moves to linked documents:

- docs/standalone-deployment.md: running blockmaster and blockvolume
  without Kubernetes, with a read-only first-volume check and a separate
  write test for scratch hosts.
- docs/kubernetes-status.md: the Kubernetes alpha feature status and
  non-claims.
- docs/workspace-measurements.md: the agent workspace measurements.
- deploy/config and deploy/systemd: env files, a topology example and
  systemd units for blockmaster and blockvolume (plus a ublk variant).

docs/quickstart-kubernetes.md and docs/design/block-design.md are updated
to match current main (auto durable-impl default, fuzz targets, the
concurrent filer CAS test, the CI workflow, the TLA+ specs in docs/spec),
and docs/assets/seaweed-block-hero.svg is refreshed.

Docs and example configuration only; no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:01:51 -08:00

48 lines
1.5 KiB
Desktop File

# Example unit for blockmaster. Settings: /etc/sw-block/blockmaster.env
# (deploy/config/blockmaster.env). Create the user once:
# sudo useradd --system --no-create-home --shell /usr/sbin/nologin sw-block
[Unit]
Description=Seaweed Block master (epoch authority)
Documentation=https://github.com/seaweedfs/seaweed-block
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=sw-block
Group=sw-block
EnvironmentFile=/etc/sw-block/blockmaster.env
# systemd creates /var/lib/sw-block-master owned by User/Group. blockvolume
# units use their own state directories, never this one.
StateDirectory=sw-block-master
StateDirectoryMode=0750
ExecStart=/usr/local/bin/blockmaster \
--authority-store=${SWB_MASTER_AUTHORITY_STORE} \
--listen=${SWB_MASTER_LISTEN} \
--topology=${SWB_MASTER_TOPOLOGY} \
--expected-slots-per-volume=${SWB_MASTER_EXPECTED_SLOTS} \
--freshness-window=${SWB_MASTER_FRESHNESS_WINDOW} \
--pending-grace=${SWB_MASTER_PENDING_GRACE} \
--workspace-rpc=${SWB_MASTER_WORKSPACE_RPC} \
--workspace-head-base-url=${SWB_MASTER_WORKSPACE_HEAD_BASE_URL} \
--workspace-max-clock-skew=${SWB_MASTER_WORKSPACE_MAX_CLOCK_SKEW} \
$SWB_MASTER_EXTRA_ARGS
# blockmaster stops on SIGTERM.
KillSignal=SIGTERM
TimeoutStopSec=30s
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
[Install]
WantedBy=multi-user.target