Commit Graph
1131 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 9613086d50 fix(sw-block): mini prints only commands it has, and says to disconnect before stopping
Review follow-up. The next steps name only commands this binary runs (the
workspace show and chunk snapshots checks, a snapshot), each parsed by a
test; no shell line until the shell exists. Without weed, the missing
chunk store is mini's own sentence, not a check that did not run. With
the connect command and again at stop, mini says to unmount and nvme
disconnect first; at stop it says the data stays in --dir and --reuse
resumes it; one line names it a trial setup (one host, loopback, no
authentication).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:44:41 -08:00
pingqiuandClaude Opus 5.5 33474e882d feat(sw-block): mini --port-shift moves every port; weed mini's filer gRPC and volume ports are passed and checked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:38:05 -08:00
pingqiuandClaude Opus 5.5 7b7c9b36fd feat(sw-block): mini starts the single-host setup in one command
sw-block mini starts weed mini (when a weed binary is found: --weed, else
PATH), blockmaster and one blockvolume (v1) on loopback with the
standalone page's flags: walstore-chunk with the chunk control endpoint
and the workspace lease when weed is there, walstore with a banner in
its first lines when it is not. It prints every command it runs, refuses
an existing --dir unless --reuse and a busy port, never runs sudo or
nvme connect (it prints the connect command and the next steps), and
stops every child, the last started first, on Ctrl-C or when one exits.

A test pins mini's walstore commands to the page's swb_start block and
every chunk flag to a flag the page documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:35:11 -08:00
Ping Qiu 5d6c0883e9 Merge pull request #690 from seaweedfs/fix/plain-settle-reserve
fix(durable): a plain detach keeps a settlement reserve inside the caller's bound
2026-11-28 12:29:28 -08:00
pingqiuandClaude Opus 5.5 6a259ea479 docs: the plain seal's cut keeps a settlement reserve inside --timeout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:45:20 -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 4b41323c13 docs: v1.0.0: when the cleaning runs after a snapshot delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 06:16:30 -08:00
pingqiuandClaude Opus 5.5 83dda5d2fe docs: v1.0.0 note: the cleaning pass starts at the first shard; planned=N
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:13:22 -08:00
pingqiuandClaude Opus 5.5 5644f47a51 docs: v1.0.0 known limit: the one-minute cleaning pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:09:06 -08:00
pingqiuandClaude Opus 5.5 5aa8ce1c7b docs: replica wipe needs a dedicated root; figures bound to their records
The untested replica wipe needs a --durable-root that holds that volume
only: the data files' names can match another volume's in a shared root.
It removes the data files and the epoch table and keeps the replica floor.
Exit 75's causes are examples, assignment_timeout added. The blocked reads
with kernel defaults are 552 s and 614 s as recorded; the slowest guest
answer during a store outage was measured once and its record not kept.
The cut's ~30 s answer is the chunk upload deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:40:41 -08:00
pingqiuandClaude Opus 5.5 79f03962ab docs: v1.0.0 note and operator guide: fixes from two full reads
Removed GC and --grace text replaced by the holder's cleaning; the replica
wipe scoped to that volume's own files; outcome_unknown on a restore
target's delete means I/O stopped until settlement; the recovery point is
the last successful snapshot, not a one-day bound; snapshots above about
150 GiB changed need several requests and the schedule retries by itself;
Kubernetes timings scoped to NVMe/TCP; exit 75's causes; the restore CLI
row; the per-cut metadata depends on the volume name length; connection
age with gRPC jitter; the cluster-spec identity cure needs a restart;
throughput and memory figures qualified; the upgrade wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:28:21 -08:00
pingqiuandClaude Opus 5.5 7d7d8c1b27 docs: v1.0.0 note: per-cut metadata size from the measurement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:35:31 -08:00
pingqiuandClaude Opus 5.5 5a788ecb49 docs: v1.0.0 known limit: unnamed roots and segments kept until delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:01:32 -08:00
pingqiuandClaude Opus 5.5 d5738ad232 docs: name a release only for fixes on its list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:06:22 -08:00
pingqiuandClaude Opus 5.5 8ae6d05354 docs: sw-block does not authenticate to SeaweedFS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:51:01 -08:00
pingqiuandClaude Opus 5.5 353927894a docs: after a refused restore, release the target, then the never-served delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:22:10 -08:00
pingqiuandClaude Opus 5.5 0c80ec3f6d docs: slower disks note; restore-target limit fix is planned for 1.0.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:36:40 -08:00
pingqiuandClaude Opus 5.5 c28e82f06c docs: one unit (GiB/s); retry at 5m, then the known limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:35:22 -08:00
pingqiuandClaude Opus 5.5 f127bc4a98 docs: restore-target delete --timeout capped at 5m; first-cut known limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:34:09 -08:00
pingqiuandClaude Opus 5.5 092aa8c69e docs: --timeout for the first cut when deleting a restore target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:30:40 -08:00
pingqiuandClaude Opus 5.5 0e7c439ce3 fix(durable): a plain detach keeps a settlement reserve inside the caller's bound
A plain detach whose final cut ran to the caller's deadline settled on
that already expired context: its first remote call failed and the caller
was told the outcome was unknown, while the background settlement found
nothing committed and resumed serving a moment later.

With a caller deadline, the cut is now cancelled min(4 s, a quarter of
the bound) early and the settlement runs on WithoutCancel(cutCtx) up to
the deadline, the shape the live detach already uses. Outcomes are
unchanged: an undecidable settlement still answers outcome unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:17:58 -08:00
pingqiuandClaude Opus 5.5 0e6042a483 docs: v1.0.0 note: keep free capacity in SeaweedFS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:20:11 -08:00
pingqiuandClaude Opus 5.5 be8df1f354 docs: the 256 GiB limit assumes a filer round trip under about 1 ms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:39:34 -08:00
pingqiuandClaude Opus 5.5 586f7e442d fix: new volumes are at most 256 GiB in v1.0.0
MaxNewVolumeBytes is 256 GiB (65,536 chunks of 4 MiB), derived from the
measured number of chunks a commit checks within one 2 s update of HEAD,
halved and rounded down. The release note states the limit, why, that a
restore target takes its source's size, and that it is planned to be
removed in 1.0.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:36:43 -08:00
pingqiuandClaude Opus 5.5 aa23975624 fix: refuse a new volume above the maximum size at both create doors
CreateVolume and the cluster-spec start check refuse a new volume above
geometry.MaxNewVolumeBytes with ErrVolumeTooLarge, naming the size and the
maximum, before any record or store exists. The check is at creation
only: a volume that already exists keeps opening under the uint32-LBA
limit. The value is a placeholder (MaxVolumeBytes) until it is set from
the measured capacity limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:58:23 -08:00
pingqiuandClaude Opus 5.5 c5461c4ff8 test(chunkstore): gate-driven, bounded commit-check controls; name the held lock
Tests and ledger only; the product code is byte-identical.

- The cap oracle is the literal 32 (a 32 -> 64 change of the constant
  fails it: 64 in flight).
- Every wait is bounded, and each control's cleanup opens its gates,
  cancels and joins the commit, so a failing control returns promptly.
- The cancel control holds every admitted lookup past the cancellation
  until the test opens their exit: a commit that returns before that did
  not join them (a removed-join mutant fails), HEAD takes no update, and
  a keep-admitting mutant starts 502 lookups.
- The order control holds the earlier lookup until the later failure has
  fully returned and nothing else is in flight (a first-to-finish mutant
  fails both ways).
- invariants.md: the wait rows name the caller-held LayoutRemote.mu
  (CASHead, CommitPendingSnapshot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:14:20 -08:00
pingqiuandClaude Opus 5.5 786f3a4d82 test(chunkstore): controls for the bounded commit check; wait and invariant ledger
Tests only, plus the ledger; the product code is unchanged.

- TestCommitLookupsNeverExceedTheCap: every lookup is held until the cap
  is reached; no 33rd starts (a cap-33 mutant fails it).
- TestACancelledCommitStopsJoinsAndWritesNothing: cancelled before any
  lookup and mid-flight, the commit returns within a bound with no lookup
  still running, admission stopped and HEAD not written (a mutant that
  keeps admitting after a failure starts 502 lookups and fails it).
- TestTheEarliestFailureByPositionDecidesTheError: of two failures the
  earlier position wins, whichever finishes first (a first-to-finish
  mutant fails it both ways).
- invariants.md: the admission and join waits of allOwnedBySession in
  C.W, and the scale, detach and control tests on
  INV-SNAPK-COMMIT-REACH-001.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:02:33 -08:00
pingqiuandClaude Opus 5.5 b38e81a8d3 docs: v1.0.0 note states the default host-loss window up front
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:20:54 -08:00
Ping Qiu 90f2cab4e8 Merge pull request #677 from seaweedfs/docs/release-v1.0.0
docs: v1.0.0 release note
2026-11-27 14:18:50 -08:00
pingqiuandClaude Opus 5.5 88d107791f docs: confirm the left-out replica before a wipe; never on the primary's host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:27:37 -08:00
pingqiuandClaude Opus 5.5 c64eafec9e docs: a best-effort volume is not failed over automatically
blockmaster holds a best-effort volume on a lost primary; only the
operator's forced failover moves it, which may lose the writes
acknowledged last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:20:42 -08:00
pingqiuandClaude Opus 5.5 877a5e4395 docs: periodic HEAD cuts are off by default
--chunk-capture-interval defaults to 0 (no timer); when set it must be at
least 5 minutes. The design text still said 15 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:08:59 -08:00
pingqiuandClaude Opus 5.5 63daf16d90 docs: under best-effort a lagging replica can still show healthy
A best-effort write waits for no replica, so a replica whose connection
dropped can keep showing healthy while it misses writes; use sync-quorum
when the replicas must hold the data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:51:41 -08:00
pingqiuandClaude Opus 5.5 ee158b11cd docs: host-limit-dir stuck path stated plainly; rerun keeps uploads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:40:48 -08:00
pingqiuandClaude Opus 5.5 55f141ad87 docs: a snapshot rerun reuses uploaded chunks; host-limit pacing ceiling
A rerun finds the chunks a timed-out request already uploaded and sends
only the rest. With --host-limit-dir set, uploads are paced at about
16 MiB/s per volume and charged for present chunks too, so more than about
4.7 GiB changed cannot finish within 5 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:39:26 -08:00
pingqiuandClaude Opus 5.5 4086f34221 docs: snapshot time, --timeout and what a timed-out snapshot leaves
A snapshot takes about 2 s per GiB changed since the last cut; the CLI
waits 60 s by default and the server at most 5 minutes per request.
State the answer codes of a timed-out request, what it leaves, and that a
rerun with the same name is the next step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:30:10 -08:00
pingqiuandClaude Opus 5.5 78505bf3cf docs: v1.0.0 release note, recovery point, Kubernetes and the filer
- Durability states the recovery point: a stopped volume keeps what it
  acknowledged; a lost host comes back from its last cut, which with the
  defaults can be up to a day old; --chunk-capture-interval (at least 5
  minutes) or a snapshot before risky work makes it newer.
- Kubernetes is an alpha in v1.0.0 (lab clusters, not production; no
  backup, snapshot or restore claimed), and its CSI node's plain connect
  holds a pod's I/O about 600 s, or some 13 minutes for a powered-off node.
- The SeaweedFS filer is a single point of availability for cuts,
  snapshots and moves.
- The connect waits say which case each is for: 181 s for a stopped
  holder with its host up (the standalone guest), 464 s for a powered-off
  host and a guest on another host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 09:27:53 -08:00
pingqiuandClaude Opus 5.5 537487c9cd docs: v1.0.0 release note, three more single-replica known limits
- A refused restore answers not_admitted after a misleading "layout store
  not ready:" prefix and leaves the target name bound (target_exists):
  restore under another name.
- A delete refused with snapshot_has_dependents has already reserved the
  volume: it does not serve again.
- A volume created at run time and not in the cluster spec is served only
  with --lifecycle-product-loop-interval set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 09:26:23 -08:00
pingqiuandClaude Opus 5.5 1941bbfa84 docs: v1.0.0 release note
The release note for v1.0.0: the single-replica walstore-chunk volume is
the supported configuration (store layout, upgrade, durability and
start-up, cleaning, authentication, limits, what is not in the release,
operator rules, known limits), and replicated volumes are a preview with
their own note. Every flag, default, limit, exit status and refusal text
named here was checked against the release candidate's code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 09:23:30 -08:00
pingqiuandClaude Opus 5.5 0391c68c20 docs: replicated preview, the v1.0.1 scope
v1.0.1 is planned to support RF3 sync-quorum installed on hosts (writes
continue through one replica's fault, which returns by itself) and RF2
sync-quorum with its limit (no acknowledged write lost, automatic failover,
writes stop while either replica is out); sync-all and Kubernetes RF3 stay a
preview; a partitioned old primary may serve older reads until its lease
ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 09:20:43 -08:00
pingqiuandClaude Opus 5.5 517c17c0ca docs: replicated preview, no snapshots, restore or moves
v1.0 is two designs: the single-replica walstore-chunk volume with the
object store (snapshots, restore, moves, object-store copy) and replicated
volumes on local stores without any of those. walstore-chunk refuses
replication at start and on any assignment with replica slots, because a
chunk snapshot takes its position from the local log, which replicas may
not hold. The preview section and the release note say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:17:26 -08:00
pingqiuandClaude Opus 5.5 352b9c93cc docs: replicated preview, the operator's procedure and its limits
- Acknowledged data is kept in the acknowledging modes only; best-effort
  can lose the writes acknowledged last in a failover.
- Wipe and add again is written out (stop the unit, clear its
  --durable-root, start it again; the replica rebuilds empty) and marked
  as not a tested procedure in this preview; an interrupted re-add needs
  another wipe.
- --wal-retention-lsns does not help in this release.
- Kubernetes has no remedy for a left-out replica in this preview.
- The release note says no store format change is planned for the
  release that lifts the preview, as a plan, not a guarantee.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:32:30 -08:00
pingqiuandClaude Opus 5.5 bc0e640e75 docs: replicated volumes are a preview in v1.0, with their limits
The operator guide gains "Replicated volumes (preview)", the standalone
page's replicated section points to it, and the release notes gain a
note. The limits, in operator terms: under a writing guest a replica that
misses writes (restarted, or fenced by a failover) is not caught up by
itself and must be wiped and re-added; a durability shortfall reaches the
guest as an immediate I/O error, not a wait; sync-all refuses writes while
any replica is down; a target that is no longer the primary does not fail
the guest over to another path (no multipath in v1.0); the same holds on
Kubernetes RF3. Acknowledged writes read back intact throughout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:21:15 -08:00
pingqiuandClaude Opus 5.5 c2a6227022 docs: host connect settings, a standalone holder that stops with its host up
The failover text covered only a lost host. When only the primary's
holder stops, the guest is still running and its I/O waits and then fails
as described (or completes if the holder restarts first); either way the
guest is started on the new primary's host after a failover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:33:36 -08:00
pingqiuandClaude Opus 5.5 21c2bfaa3e docs: host connect settings, the standalone guest moves with its primary
A standalone guest runs on the volume's primary host and goes down with
it, so the failover step is to start the guest on the new primary's host,
not to disconnect a controller first; the disconnect step is dropped. Both
measured timings stay as facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:31:47 -08:00
pingqiuandClaude Opus 5.5 60d7012f71 docs: host connect settings, defaults by the same count, and which deployment
- Kernel defaults are 60 attempts (600 s / 10 s): about 600 s when the
  holder's host refuses the connection, and some 13 minutes (60 x (10 s +
  the ~3 s connect timeout)) when it is unreachable, marked derived. The
  Kubernetes paragraph says the same instead of "up to 600 s".
- Each case names its deployment: a standalone guest connects over
  loopback and meets the stopped-holder case and the disconnect step; the
  unreachable-host case is a guest on another host, in v1 a Kubernetes pod.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:26:25 -08:00
pingqiuandClaude Opus 5.5 06f3546909 docs: host connect settings, a dead host, and disconnect after a failover
Measured with the guide's options (ctrl-loss-tmo 180, reconnect-delay 2,
fast_io_fail_tmo off): a stopped holder process refuses each attempt at
once, and a pending write fails with EIO after 181.5 s (90 attempts 2 s
apart); a powered-off or unreachable host answers nothing, each attempt
waits for the connect timeout (about 3 s), and the write fails after
464 s (kato + 90 x (2 s + connect timeout)). Linux bounds the retries by
count, not by time.

After a failover the guest's first step is nvme disconnect of the lost
primary's controller: its pending I/O then fails at once (EIO 1.5 s
after the disconnect) instead of after up to 464 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:18:17 -08:00
pingqiuandClaude Opus 5.5 39f329d3b3 docs: a snapshot that answers head_conflict, and its retry
The operator guide says what to do when a snapshot answers head_conflict
(retry with the same name) and, in this release, when that retry answers
internal "not in HEAD after its commit" (retry once more): the data is
committed either way and the name exists only after a request succeeds. A
retry that names the snapshot at once is planned for 1.0.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:11:55 -08:00
Ping Qiu 1916a8d94c Merge pull request #662 from seaweedfs/docs/host-connect-settings
docs: host connect settings
2026-11-26 20:23:04 -08:00
Ping Qiu 127bbff374 Merge pull request #651 from seaweedfs/docs/automatic-failover
docs: a lost replicated primary is failed over automatically
2026-11-26 20:18:49 -08:00