mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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>
This commit is contained in:
1 parent
78505bf3cf
commit
4086f34221
2 files changed
+14
No files matched your search
@@ -224,6 +224,17 @@ the snapshot name exists only after a request for it succeeds (check with `sw-bl
|
||||
(`TestKnownDefectSnapshotRetryAfterAGenuineConflictCommitsTheDataUnnamed`). A retry that names the snapshot at once is
|
||||
planned for 1.0.1.
|
||||
|
||||
A snapshot's time grows with the data changed since the volume's last cut: 64 GiB changed took 122 s (about 2 s
|
||||
per GiB). `sw-block ops chunk snapshot` waits 60 s by default, so pass `--timeout` above the expected time; the
|
||||
server bounds one request at 5 minutes whatever `--timeout` says, which is about 150 GiB changed. A request that runs
|
||||
out of time answers a retryable code: `remote_unavailable` or `deadline_exceeded` when it ran out before its commit,
|
||||
`outcome_unknown` when it ran out during the commit. Before the commit, the name is withdrawn and no later cut
|
||||
publishes it; the volume's data is unchanged and stays queued for the next cut, and what the request uploaded is
|
||||
removed by a later cleaning. After `outcome_unknown`, the commit may have landed with the name.
|
||||
Rerun the snapshot with the same name and a larger `--timeout`: a name already in HEAD is answered with the
|
||||
snapshot it names, so a rerun never takes a second one. The rerun uploads the changed data
|
||||
again. A longer or derived default is planned for 1.0.1.
|
||||
|
||||
## Moving a volume, and returning it
|
||||
|
||||
[Volume lifecycle](volume-lifecycle.md):
|
||||
|
||||
@@ -63,6 +63,9 @@ defaults, so a pod whose holder does not come back holds I/O for about 600 s whe
|
||||
## Limits
|
||||
- Up to 10 snapshots per volume; one more is refused with `snapshot_limit` and changes nothing (delete a snapshot or
|
||||
let retention prune).
|
||||
- A snapshot takes about 2 s per GiB changed since the last cut (64 GiB: 122 s). The CLI waits 60 s by default and
|
||||
the server at most 5 minutes per request: pass `--timeout`, and rerun a timed-out snapshot with the same name (see
|
||||
the operator guide).
|
||||
- Snapshot names up to 64 bytes; up to 4 labels per snapshot (keys up to 24 bytes, values up to 32 bytes).
|
||||
- Up to 4 restore targets per snapshot and 16 per volume at a time.
|
||||
- A volume's size, block size and chunk size are fixed at creation; resize is not supported, and a restore target
|
||||
|
||||
Reference in new issue
Block a user