diff options
| author | chrislu <chris.lu@gmail.com> | 2024-08-21 22:53:54 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-08-21 22:53:54 -0700 |
| commit | 446329681175dbce771378e7c46bbabfeaa4b74e (patch) | |
| tree | be08c890a15c8d1b41654e48492e2e0f298b8919 /weed/command/server.go | |
| parent | 5535b60e8c60511ca393d47fa59f66c378ab977e (diff) | |
| download | seaweedfs-446329681175dbce771378e7c46bbabfeaa4b74e.tar.xz seaweedfs-446329681175dbce771378e7c46bbabfeaa4b74e.zip | |
add parallel vacuuming
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index ddcaf1f7e..13d06a56b 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -92,6 +92,7 @@ func init() { masterOptions.peers = cmdServer.Flag.String("master.peers", "", "all master nodes in comma separated ip:masterPort list") masterOptions.volumeSizeLimitMB = cmdServer.Flag.Uint("master.volumeSizeLimitMB", 30*1000, "Master stops directing writes to oversized volumes.") masterOptions.volumePreallocate = cmdServer.Flag.Bool("master.volumePreallocate", false, "Preallocate disk space for volumes.") + masterOptions.maxParallelVacuumPerServer = cmdServer.Flag.Int("master.maxParallelVacuumPerServer", 1, "maximum number of volumes to vacuum in parallel on one volume server") masterOptions.defaultReplication = cmdServer.Flag.String("master.defaultReplication", "", "Default replication type if not specified.") masterOptions.garbageThreshold = cmdServer.Flag.Float64("master.garbageThreshold", 0.3, "threshold to vacuum and reclaim spaces") masterOptions.metricsAddress = cmdServer.Flag.String("master.metrics.address", "", "Prometheus gateway address") |
