Merge pull request #245 from seaweedfs/fix/chunk-dirty-threshold-help

blockvolume: correct the --chunk-dirty-threshold help text and comment
This commit is contained in:
Ping Qiu authored and GitHub committed 2026-11-19 05:59:07 -08:00
commit b783626889
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ func parseFlags(args []string) (flags, error) {
fs.StringVar(&f.chunk.replication, "chunk-replication", "", "walstore-chunk: replication for chunk needles (empty = filer default / storage rule)")
fs.DurationVar(&f.chunk.captureInterval, "chunk-capture-interval", defaultChunkCaptureInterval, "walstore-chunk: automatic cut once this long has passed since the last successful cut; 0 (default) disables the timer, e.g. 15m as a host-loss safety net")
fs.IntVar(&f.chunk.uploadConcurrency, "chunk-upload-concurrency", 8, "walstore-chunk: maximum concurrent dirty-chunk uploads (1..64)")
fs.IntVar(&f.chunk.dirtyThreshold, "chunk-dirty-threshold", defaultChunkDirtyThreshold, "walstore-chunk: bound on one cut's barrier copy, in chunks; never triggers a cut; 0 = unbounded")
fs.IntVar(&f.chunk.dirtyThreshold, "chunk-dirty-threshold", defaultChunkDirtyThreshold, "walstore-chunk: number of candidate chunks above which a cut pre-copies (stages) chunks before its barrier, in rounds of this size; copy-before-write copies the rest outside the barrier; never triggers a cut; 0 = no pre-copy")
fs.BoolVar(&f.chunk.controlEndpoint, "chunk-control-endpoint", false, "walstore-chunk: expose the /chunk/* control routes (cut, snapshot, snapshots, snapshot/delete, detach) on the status HTTP listener; off by default; loopback-only like the listener")
fs.UintVar(&f.durableBlocks, "durable-blocks", 2048, "number of blocks per volume on first create (ignored when opening existing)")
fs.UintVar(&f.durableBlockSize, "durable-blocksize", 4096, "block size in bytes on first create")
@@ -173,10 +173,12 @@ type ProviderConfig struct {
// host's 30 s I/O timeout; a freeze past the 5 s target is logged as an
// alarm. Cooperative: a syscall that never returns is not bounded.
DetachFreezeTimeout time.Duration
// ChunkDirtyThreshold is the bound on one cut's barrier copy, in
// chunks. It never triggers a cut: the remote holds snapshots, and
// cuts are published only by CaptureVolume, MakeVolumeRemoteDurable
// (snapshot, detach) and the timer. Zero: unbounded.
// ChunkDirtyThreshold is the number of candidate chunks above which
// a cut pre-copies (stages) chunks before its barrier, in rounds of
// this size; copy-before-write copies the rest outside the barrier.
// It never triggers a cut: the remote holds snapshots, and cuts are
// published only by CaptureVolume, MakeVolumeRemoteDurable
// (snapshot, detach) and the timer. Zero: no pre-copy.
ChunkDirtyThreshold int
// ChunkUploadConcurrency bounds remote uploads; zero defaults to 8.
ChunkUploadConcurrency int