Commit Graph
102 Commits
Author SHA1 Message Date
Ping QiuandClaude Opus 5.5 a5686e7fa7 Sync seaweed-block v1.1.1 into seaweed-block/ (#13411)
Brings seaweed-block main (v1.1.1 plus the docs and a test fix after it)
into seaweed-block/ as one commit. Only files under seaweed-block/ change,
and the subtree equals seaweed-block main exactly. The module's full
history stays in the seaweed-block repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:04:53 -08:00
Ping Qiu 6cea6fd674 Merge pull request #843 from seaweedfs/v11/remove-experimental-engines
durable: remove the smartwal and parallel-walstore engines (refused typed)
2026-11-30 21:54:58 -08:00
Ping Qiu 468b7a3db2 Merge pull request #819 from seaweedfs/docs/main-is-v11
docs: README says main is v1.1 in development; v1.0.x ships from release-1.0
2026-11-30 21:37:06 -08:00
pingqiuandClaude Opus 5.5 68045d9698 durable: remove the smartwal and parallel-walstore engines
- The provider refuses the removed names and, under every selector and
  before any selector comparison, a volume carrying their magic (SWAW;
  SWPW in either header slot), reading the file read-only and never
  modifying it. blockvolume --durable-impl and the launcher refuse the
  names with the same advice; the chart schema allows walstore only.
- core/storage/smartwal, core/storage/parallelwal and
  cmd/sw-block-testutil (whose one command corrupted smartwal records)
  are deleted, with the helm smartwal-corruption scenario and the
  parallel-walstore gate script.
- The replication harness runs on walstore; tests that ran on a removed
  engine only because a stub needed some store move to walstore, and the
  state_convergence label test moves to the in-memory BlockStore.
- sw-block cluster.check drops the removed engines' cases.
- Ledger: INV-OPEN-REMOVED-ENGINE-REFUSED-001 and
  INV-OPEN-REMOVED-ENGINE-NAME-REFUSED-001, an OpenRefused edge in M1, and
  the rows citing the removed tests updated. Docs: block-design 1.3 now
  describes the removal, the smartwal deep-dive and figure are gone, the
  scripts default to walstore, and the v1.1 notes carry the removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:54 -08:00
pingqiuandClaude Opus 5.5 70b324940d docs: README says main is v1.1 in development; v1.0.x ships from release-1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:35:15 -08:00
pingqiu a224d22234 docs: v1.0.1 release note; drop the stale "coming in v1.0.1" lines
The note lists what v1.0.1 adds and fixes, its upgrade, limits and known
limits, checked against this branch. README, troubleshooting, the cleaning
page and the operator guide no longer call those changes unreleased; the
operator guide describes the CLI's own repeat of 5-minute requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e883ade9be)
2026-11-30 02:39:35 -08:00
pingqiuandClaude Opus 5.5 e4de6bdef3 docs: v1.0.1 keeps new volumes at 256 GiB; 1 TiB moves to v1.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:19:04 -08:00
Ping Qiu 36d90c3f66 Merge pull request #730 from seaweedfs/docs/readme-mini
docs(readme): sw-block mini on main, after the v1.0.0 first check
2026-11-28 23:42:45 -08:00
pingqiuandClaude Opus 5.5 3b109f7007 docs(readme): what stops a restore in mini is blockmaster's admission
The online create command is on main. A restore into a new volume inside a
mini trial is refused because mini's blockmaster admits only the volume in
its one-volume cluster spec while its product loop is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:19:14 -08:00
pingqiuandClaude Opus 5.5 329aa1a1fc docs(readme): a restore is not possible inside a mini trial yet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:16:56 -08:00
pingqiuandClaude Opus 5.5 e3b90af32b docs(readme): v1.0.0 check first; mini on main with its build, scope and restore limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:10:50 -08:00
pingqiuandClaude Opus 5.5 ffba6a77b5 docs(readme): try it with sw-block mini (from 1.0.1, main)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:06:47 -08:00
pingqiuandClaude Opus 5.5 552778c546 docs(readme): direction states what was run where; mini; Kubernetes alpha
The planned hand-over ran across two machines on the release candidate (recorded in the measurements, and the lifecycle table's row updated); the forced move was tested with two server identities on one machine and restores from the last cut. v1.0.1 lists sw-block mini first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:16:22 -08:00
pingqiuandClaude Opus 5.5 83b5d9a819 docs(readme): direction: what works today, what v1.0.1 adds, what comes after
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:09:24 -08:00
pingqiuandClaude Opus 5.5 8f3ddc1990 docs(readme): 'took about 2.2 times as long'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 6e181f939a docs(readme): the flush figures compare both sides with their flush
11-23% is the block disk with its syncfs against the local disk with its syncfs, for npm ci, git clone and the 100,000-file untar; untar of 5,000 files is about 2.2 times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 636009705b docs(readme): provenance, flush-inclusive figures, ownership, no comparison yet
The workload rows are a pre-release walstore build timing the operation
itself; the page and the measurements give the figures with the final
syncfs too (11-23% for the README rows; 4-36x against the FUSE
prototype, now described as such). The recovery point is 'normally about
a day', not a bound. A write does not wait on SeaweedFS except a restored
volume's first fetch of a chunk. Ownership names lease admission and the
one-blockmaster rule beside the HEAD fencing. The fault-injection record
states its scope and the night's other failures. The comparison table
leaves the page until others' names and sources can be public.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 b8eff10315 docs(readme): recovery point beside the claims; fsync scope; NVMe/TCP rows
With the default settings a lost host loses up to about a day of writes:
the pitch and the first line of status say so, with the flag that
shortens it. The fsync point is scoped to the serving host. The FUSE
factor is one implementation on the same host, in its own point. The
chart and table lead with NVMe/TCP (ublk is not a v1.0.0 frontend); the
diagram names NVMe/TCP or iSCSI and the daily default. The chart's axis
fits every bar, and the script refuses a value beyond it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 1fa6bec4b2 docs(readme): keep the chart script with its data under docs/assets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 b1b08135e5 docs(readme): rewrite: pitch, two-path diagram, why, chart, comparison
The page leads with what the product is for and a diagram of the write
path and the background path; install and the first check come next;
then why (each point linked to its evidence), the measured chart and
table, a comparison by design category, and status and limits. The
remaining sections are kept as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:44:03 -08:00
pingqiuandClaude Opus 5.5 7d7eee18c6 docs(readme): one name for the restored volume; commands are for v1.0.0
The lifecycle example restored into v3 and then deleted v2, which a
reader following it does not have; it now deletes v3. Install says the
page's commands are for v1.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:00:57 -08:00
pingqiuandClaude Opus 5.5 145e7c8fe8 docs(readme): v1.0.0 facts: install, maturity, cleaning, measured rows
Install from the v1.0.0 image (or build from the tag), not a main
commit's image; the single-replica chunk path is supported in v1.0.0 and
replicated volumes are a preview; the holder's cleaning replaces the old
GC text; the fork measurement is dropped, and the lifecycle row is
labelled as a pre-release run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:56:46 -08:00
pingqiuandClaude Opus 5.5 c219ef79c1 docs: do not recommend ops chunk verify in v1.0.0
ops chunk verify does not read the v1.0.0 volume directory layout: on a
healthy volume it reports a missing VOLUME, or (by its full name) false
identity findings. Remove its steps and claims from the guides and the
README, and state the limit in the release note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 07:44:58 -08:00
pingqiuandClaude Opus 5.5 3bc43a6879 docs: restore as v1 ships it; fork removed
Restore is created with --master and fills on access (no restore driver,
no background copy); its source snapshot stays a dependent for the
target's life. Fork and template retirement are not in this release.
The documented show, snapshots and snapshot-delete commands get the
required --master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:53 -08:00
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 Fable 5.2 84252ed21f docs: how to delete a volume; README states the real delete rule
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 15:56:42 -08:00
pingqiuandClaude Opus 5.5 bc86aeeab0 docs: operator guide, the entry page for standalone v1.0 volumes
What v1.0 supports and the layout rule (blockmaster off every volume
host, and why), install, sizing, the recovery point and what publishes
it, snapshots and the two-step space return, moving and returning a
volume, the steps after a host loss, the stated limits, and every command
on these pages with the test that runs it. The README links it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:41:50 -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
pingqiu 0e5a6361a3 Merge remote-tracking branch 'pr/360' into train11 2026-11-21 14:25:14 -08:00
pingqiuandClaude Opus 5.5 3897052b0c docs(readme): a pull request runs the heavy packages it changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:33:46 -08:00
pingqiu eca7d9e498 Merge remote-tracking branch 'origin/main' into docs/ci-full-suite-note 2026-11-21 10:33:46 -08:00
pingqiuandClaude Fable 5.2 8b4d357d59 Merge main: rows recounted with the document check
Main's wording wins where it changed a row; the not-reachable marks, the
two new rows and the note are kept; the count is recomputed from the
tables and the document check passes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:32:47 -08:00
pingqiuandClaude Fable 5.2 69b83d6e16 volume, blockvolume: refuse the frozen detach and the pre-copy detach flag
A detach request with frozen set is answered 409 frozen_detach_unsupported
before any provider call, and blockvolume refuses to start with
--chunk-detach-precopy. Nothing is deleted: both mechanisms become
unreachable in this release. The request fields stay so the strict
decoder keeps answering the typed refusal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:04:51 -08:00
pingqiu 4d2603659c Merge remote-tracking branch 'pr/361' into train10 2026-11-21 08:49:15 -08:00
pingqiuandClaude Opus 5.5 720fe00f23 sw-block: ops chunk restore creates the restore volume (--source --snapshot --target)
sw-block ops chunk restore --source --snapshot --target creates the target
from the snapshot with Catalog.Restore (idempotent by --request-id) and, with
--status-addr naming the blockvolume that serves the target, starts the
restore driver there in the same command and prints both results. Without
--status-addr it creates the target and prints the command that starts the
driver once the target is attached. --volume keeps driving an existing
restore. README lists both forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:43:47 -08:00
pingqiuandClaude Opus 5.5 d885740ca5 docs(readme): say which tests run on GitHub and which on the per-train VM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:33:05 -08:00
pingqiuandClaude Opus 5.5 b8d5b3bc13 Merge origin/main ee92613b (Train 9) into the external-bind refusal
Only conflict: the Part B summary line, recounted from the tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:50 -08:00
pingqiuandClaude Opus 5.5 163560c691 docs: upgrade note for --insecure-external-bind
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:55:09 -08:00
pingqiuandClaude Fable 5.2 591a5a3b1c chunkstore, sw-block: verify the remote image against HEAD and snapshots
Add Catalog.Verify and 'sw-block ops chunk verify': a read-only check of a
volume's remote image at three depths (meta, bindings, data). GC's mark does
not look up the bindings of the keys it roots and never reads chunk data, so
a missing binding or a damaged needle was found only by a guest read.

A miss is reported only if its root still names the chunk: verify re-reads
HEAD (superseded during verify) or the snapshot attempt (root deleted during
verify) before reporting, since a pass can outlive GC's grace. A needle is
NEEDLE_MISSING only when the store answers not found; any other read failure
is retried and then reported as READ_ERROR (not verified). Exit code 3 means
the pass completed with findings.

The single-filer start check now also runs in the shared dial path of the
'ops chunk' commands and in gc.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 20:08:27 -08:00
Ping Qiu c5a7f062a0 Merge pull request #185 from seaweedfs/docs/m5-fsync-numbers
docs: report guest fsync after the group-commit fix (#173)
2026-11-16 19:36:44 -08:00
pingqiuandClaude Opus 5.5 7e33a89f8c docs: report guest fsync after the group-commit fix (#173)
The README, the agent-workspace diagram and docs/workspace-measurements.md
still said guest fsync was about 7 ms against 3 ms local. A rerun after #173
(same lab pack and host, the same four setups, fio 4 KiB random write one at
a time with fsync after every write, median of 3 boots) measured a median of
3.23 ms (ublk, walstore-chunk) against 2.74 ms local. The original runs stay
as history in docs/workspace-measurements.md.

Documentation only; no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:05:23 -08:00
pingqiuandClaude Opus 5.5 458fb83a93 docs: add the protocol contract (state machines and invariant ledger)
docs/design/invariants.md lists the six state machines Seaweed Block
implements (walstore, authority, replica role and peer, workspace HEAD
holder and takeover, the cut pipeline, the chunk lifecycle) with each
transition's guard and enforcing function, and a 71-row invariant ledger
(69 ACTIVE, 2 STUB): statement, machine and transition, enforcement, tests,
TLA+ property and status. AGENTS.md gets a 'Protocol contract' section, and
the three design docs and the README link the new doc.

Documentation only; no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:01:38 -08:00
pingqiuandClaude Opus 5.5 63dcb49a54 docs: delete outdated docs, simplify the rest, and split the design reference with diagrams
- Delete the stale roadmap and eight wiki planning pages (git history keeps
  them); move the only unique content (Phase 166-170 write-path experiment
  results) into docs/releases/nvme-tcp-supported-lab.md.
- Simplify the remaining user docs; duplicated non-claim lists link to
  docs/kubernetes-status.md; lab host names and local paths are removed.
- Split docs/design/block-design.md into core, agent-workspace-design.md and
  kubernetes-block-design.md; add four SVG diagrams of the on-disk and remote
  structures and new mermaid diagrams.
- mkdocs.yml nav and README links follow the new layout; the two gate
  scripts drop the one check each that read a deleted file.

Docs only; no product code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:16:02 -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
pingqiuandClaude Opus 5.5 ba5eeec356 blockvolume: help and README say auto refuses a walstore-chunk root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:47:04 -08:00
pingqiuandClaude Opus 5.5 1f10755b0e blockvolume: walstore is the default for new volumes; smartwal is experimental
--durable-impl now defaults to empty (auto). A new volume is created as
walstore. An existing volume opens with the implementation its on-disk
superblock names, so volumes created under the old smartwal default keep
opening (no ImplKindMismatch on upgrade). An explicit selector keeps the
exact ErrImplKindMismatch refusal, and an unrecognized on-disk format is
still refused.

- core/frontend/durable: ImplAuto (the zero value) is resolved per volume
  in openOrCreate; openExisting/createFresh take the resolved
  implementation, and each volume handle records it, so DurableStatuses
  reports the on-disk implementation. ImplSmartWAL is documented as
  experimental; the 'production default' comments are removed.
- cmd/blockvolume: --durable-impl default '' with help text 'auto';
  smartwal (experimental). The walstore-only options still require an
  explicit --durable-impl=walstore.
- README: smartwal listed under 'Not claimed yet' with its open issues.

Tests: auto creates walstore; auto opens existing smartwal, walstore and
parallel-walstore volumes by their on-disk format; auto refuses an
unrecognized file; the flag default is empty; explicit values accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:31:27 -08:00
pingqiuandClaude Opus 5.5 173b20895b docs: label the snapshot/fork and cut numbers as a host-side proxy
The snapshot, fork and parallel-upload cut numbers come from a host-side
proxy (chunks as local files, a deterministic filer metadata model; no
network, guest fsync or block frontend), not from the Firecracker runs. Say
so in the section intro, the table caption, the cut sentence and the image
footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 07:58:04 -08:00
pingqiuandClaude Opus 5.5 7b78864588 docs: README leads with agent workspace disks; keep the Kubernetes alpha section
Adds an 'Agent workspace disks' section: a local-speed disk per agent microVM,
incremental chunk snapshots to SeaweedFS, cheap snapshot/fork, host moves with
fenced HEAD takeover, measured workspace workloads and snapshot/fork cost, the
sw-block ops chunk lifecycle commands, correctness work and what is not claimed
yet. Adds the overview image docs/assets/seaweed-block-agent-workspace.svg.

The Kubernetes alpha content is unchanged apart from heading levels and the
status table title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 07:57:26 -08:00
pingqiu 0dce26d2b0 phase165: add kubernetes nvme rdma publish attach 2026-07-18 03:03:54 -07:00