mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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:
commit
b783626889
2 files changed
+7
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user