mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
022c9077ddbf7fa515ec825fb198c44d545dd323
The volume's automatic cuts follow the W3 ruling: - Timer: a cut is due once ChunkCaptureInterval has passed since the last successful cut of any kind; an explicit Cut, Snapshot or Detach restarts it. - Threshold: a cut is due once ChunkDirtyThreshold chunks are dirty since the last HEAD. Whichever fires first triggers; zero disables either. - Automatic cuts are at least 1 s apart. - A failed automatic cut resets nothing and is retried after a backoff doubling from 1 s to 30 s. - A successful cut, including a no-op one (no CAS), clears the backoff and restarts the timer. The decision is a pure policy (cutPolicy), tested with explicit times. The provider loop polls the layer's Stats every 100 ms for the dirty count and the last successful cut. blockvolume defaults: --chunk-capture-interval=30s, and a new --chunk-dirty-threshold=64 (256 MiB of 4 MiB chunks). The --chunk-* flags stay refused with other implementations when set away from their defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%