Commit Graph
37 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 ab747bfa47 change: cut over to the content-named store and delete the legacy store
The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:59:23 -08:00
pingqiuandClaude Opus 5.5 e82abea6b8 k8s: Kubernetes installs run blockmaster with mutual TLS; the plaintext off-host bind flag is refused
blockmaster refuses --insecure-external-bind (a non-loopback --listen needs
mutual TLS; the runtime HTTP listener stays on loopback), and
--launcher-master-tls-secret-prefix makes each generated volume mount its
server's node certificate Secret and dial with it. The chart, the launcher
renderer, the alpha/g15b/g15d manifests and gate scripts mount the Secrets
and pass the TLS flags; network.externalStatus and the frontend runtime
HTTP option fail the render. scripts/k8s-alpha-certs.sh issues development
certificates and the role file. The systemd startup gate runs its
off-loopback master with mutual TLS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:20:11 -08:00
pingqiuandClaude Opus 5.5 9c60d8c247 fix: known-zero needs this start's create; retire the marker before the marking
Two parts of the rule are added. Certification needs the store to have
been created by this process start (an in-memory bit, never persisted):
a fresh marker left by an earlier start, an older binary or another
opener is never trusted, so a first start that dies before its attach
commit pays one scan. And the order is: the attach commit retires the
marker, then the marking is made durable, then the volume serves; a
crash between the first two leaves no marker and every chunk UNKNOWN
(one scan). The user guide states that every explicit implementation
other than walstore-chunk refuses a chunk root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:59:08 -08:00
pingqiuandCodex b10708fa8e docs: qualify the template source retirement procedure
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 20:05:32 -08:00
pingqiuandCodex ca7819fab2 docs: separate the template retirement procedure for review
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 20:04:58 -08:00
pingqiuandCodex 7ea9b7ab02 test: bound template verification in the procedure and guide
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 20:01:10 -08:00
pingqiuandCodex 6a4420983c test: prove flat grandchild reads and template source retirement
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 19:59:06 -08:00
pingqiuandCodex dfe64e1658 docs: state flat image references and shared-space retention
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 19:52:57 -08:00
pingqiu 384d2002e6 docs: describe configured fence-exit budget and scheduling premise 2026-11-22 23:45:08 -08:00
pingqiu 8a00ae8bdd docs: align workspace skew range with fence-exit check 2026-11-22 23:43:10 -08:00
pingqiu e3e351f895 Merge remote-tracking branch 'origin/main' into docs/volume-lifecycle 2026-11-22 13:24:51 -08:00
pingqiuandClaude Opus 5.5 83f8507d3b durable, blockvolume: review fold for the host lock and the rolled-back root
- The lock directory is created (0700) when missing; only a directory or
  lock file that cannot be created or opened refuses, with the cure
  (install the tmpfiles.d entry, or chown the directory and its lock files
  to the unit's user).
- The lock file is opened read-only (an existing file first, created 0644
  only when missing), so a lock file another user created stays lockable;
  it is never unlinked, and the next owner locks the same file.
- A stale-root startup end carries its cure into the final exit line:
  exiting status=78 reason=superseded cure="...".
- Tests: a cut's remote_lsn is locally durable at its HEAD CAS, and the
  root's crash image at the CAS reattaches and serves; the rolled-back copy
  makes no claim or PUT, admits no I/O, keeps its data and durable LSN; an
  exact copy at HEAD attaches; a read-only lock file is taken.
- Invariants: INV-WS-ONE-PROCESS-PER-HOST-001 and its M4 edge; the
  rollback row names its test file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 bd8afb0aea blockvolume: one live process per volume per host; refuse a rolled-back root
V1-SPEC r2.45.
(1) The provider takes an exclusive, non-blocking lock on
/run/sw-block/locks/<volume id>.lock before the volume's store opens and
releases it after the store closes (HostVolumeLock, set by blockvolume). A
missing directory refuses the provider with the cure; the tmpfiles.d
entry ships in deploy/systemd and both units may write it under
ProtectSystem=strict. --volume-lock-dir-test-only (hidden, refused under
systemd, warned at start) is for plain subprocess tests and harnesses.
(2) An existing root whose HEAD names this holder attaches only if its
local durable LSN reaches HEAD's remote_lsn; otherwise the existing
stale-root refusal, no retry (78 superseded), with the cure.
(3) docs/releases/one-process-per-volume.md: the lifecycle do-not list.
No HEAD change, no format bump, no new persisted file, no new exit reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiu e082155232 docs(deploy): explain no-restart outcomes and retry window 2026-11-22 08:48:38 -08:00
pingqiu 3dc1bac4c9 fix(deploy): bound blockvolume supervisor retries 2026-11-22 08:38:34 -08:00
pingqiu d2525156cc test: cover foreign-holder fencing and carried lease identity 2026-11-22 00:57:04 -08:00
pingqiu 926939f1cd Merge remote-tracking branch 'origin/main' into docs/volume-lifecycle 2026-11-21 23:21:48 -08:00
pingqiuandClaude Fable 5.2 b24c815245 docs: volume lifecycle for a standalone workspace volume
One page for the operator: the three records to look at (lease, HEAD,
revoke ACK), the planned hand-over step by step with the shipped
commands, the same-host case, what to do after a crash or a lapsed
lease, the forced move, and a symptom table with the exact messages.
Corrects stale sentences in the README, the standalone guide, the
workspace protocol note and the blockmaster config comment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:21:48 -08:00
pingqiuandClaude Fable 5.2 f287e281c2 docs: NVMe/TCP device lookup needs native NVMe multipath
The walkthrough's lookup and the CSI node plugin resolve the namespace
under /sys/class/nvme-subsystem, which holds it only with nvme_core
multipath=Y. Say so, with the check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 22:02:34 -08:00
pingqiuandClaude Fable 5.2 70fa2dee00 docs: required setup, make the volume known to blockmaster
A blockvolume that blockmaster does not know serves nothing and says
little. The standalone document now states the topology file and the
matching flags as required steps, how to check before and after, and
which log line means which missing step.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 21:23:41 -08:00
pingqiu dd6fd3c2bb cli: clarify logical holder and sealed generation fields 2026-11-21 20:02:31 -08:00
pingqiu 4a58b209b0 docs(cli): distinguish host validity from forced-move admission 2026-11-21 19:55:06 -08:00
pingqiu a6190e59f6 docs(cli): document seal-before-revoke planned handoff workflow 2026-11-21 19:50:12 -08:00
pingqiuandClaude Fable 5.2 8c154f7de0 docs: SeaweedFS maintenance commands that destroy walstore-chunk volumes
A walstore-chunk volume's data is held in needles that no file's chunk
list names, so volume.fsck with its delete flags would remove it. The
operator document now says which commands must never run on such a
cluster, which only report, and which are safe.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:10:37 -08:00
pingqiu c575469054 Merge PR #373 2026-11-21 17:07:35 -08:00
pingqiuandClaude Opus 5.5 de9da9483a docs: durable-root note states the flush-latency floor, the exact measured figures, and that the stall cause is open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:02:59 -08:00
pingqiuandClaude Opus 5.5 5fd02b4716 docs: put the blockvolume durable root on low-latency storage, with the measured reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:59:50 -08:00
pingqiuandClaude Opus 5.5 ef1a70382a docs: recovery point and consistency first; control endpoint exposure; vacuum commands; verify exit codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:13:54 -08:00
pingqiuandClaude Opus 5.5 261e5c4468 docs: snapshots, restore and getting space back for walstore-chunk volumes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:02:35 -08:00
pingqiuandClaude Opus 5.5 ab3610608c blockvolume: scheduled snapshots (daily:7 by default), one COW cut each at a per-volume offset
A per-volume worker takes a named snapshot of class scheduled once per
period, through the same seal path as an explicit snapshot (resolve the
request, one urgent cut, record that cut's HEAD). A restoring volume
(chunks its HEAD names still absent) is skipped and counted; a failure
keeps the control endpoint's code and is retried with a backoff doubling
from 1m to 1h; status carries the schedule state and snapshot_overdue.
Retention keeps the newest N scheduled snapshots (N from the newest one's
swb.schedule.keep label) separately from other snapshots.
--chunk-snapshot-schedule=daily:N|weekly:N|off, default daily:7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiuandClaude Opus 5.5 3166854cbe blockvolume: delete --chunk-dirty-threshold outright (pre-GA); a unit passing it fails at start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:30:20 -08:00
pingqiuandClaude Opus 5.5 46a7f6ad77 storage, volume: BarrierBound and barrierOverBound documented as legacy-fixture only; production stages by the copy-on-write budget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:21:28 -08:00
pingqiuandClaude Opus 5.5 6687234a0d blockvolume: --chunk-dirty-threshold is deprecated and ignored (cuts stage by the copy-on-write budget); warn at start, removal after 2027-01-31
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:09:00 -08:00
pingqiuandClaude Opus 5.5 961f08f66e chunkstore: the single filer must be the configured one, on every master
A pass now needs a master listing exactly the configured filer (same
gRPC port, same or co-resolving host). Every master is asked: any
master listing another filer or several refuses at once, whichever
answers first. Each master call is bounded within the remaining time,
so a stalled master no longer consumes the whole bound. Startup census
only; invariant INV-WS-SINGLE-FILER-001 and its M6 row record it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:53:13 -08:00
pingqiuandClaude Opus 5.5 7578b34095 chunkstore: wait for the filer to register before refusing
A fresh filer registers with its master some seconds after it serves
(14 s in the swap smoke), so "no filer listed" is asked again every
second until a 60 s bound and refused only then. Several filers are
still refused at once; an unreachable master is retried the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:28:23 -08:00
pingqiuandClaude Opus 5.5 a5785ff688 blockvolume: refuse to start unless the chunk filer is the only filer
Block metadata needs exactly one filer behind --chunk-filer. At startup
the chunk wiring asks that filer for its masters and filer group
(filer_pb.SeaweedFiler/GetFilerConfiguration), then the masters for the
filers of that group (master_pb.Seaweed/ListClusterNodes). It refuses
unless a master lists exactly one, and when it cannot get that answer
within 15 s. The filer subset gains GetFilerConfiguration and a master
subset carries ListClusterNodes, generated with the committed plugin
versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:20:10 -08:00
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