aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_encode.go
diff options
context:
space:
mode:
authorLisandro Pin <lisandro.pin@proton.ch>2025-05-13 16:59:26 +0200
committerGitHub <noreply@github.com>2025-05-13 07:59:26 -0700
commit0be020b0fab7419bb55fc5159dd699be56e2a605 (patch)
tree22cbab2eb2f771b9f2da7f0410c4f5486c6bca03 /weed/shell/command_ec_encode.go
parentba1d82db90235fb7ee589bce94cd575e2a16e26e (diff)
downloadseaweedfs-0be020b0fab7419bb55fc5159dd699be56e2a605.tar.xz
seaweedfs-0be020b0fab7419bb55fc5159dd699be56e2a605.zip
Nit: unify the default `--maxParallelization` value for `weed shell` commands supporting this option (#6788)
Diffstat (limited to 'weed/shell/command_ec_encode.go')
-rw-r--r--weed/shell/command_ec_encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go
index d9e3a88c6..db2fac469 100644
--- a/weed/shell/command_ec_encode.go
+++ b/weed/shell/command_ec_encode.go
@@ -66,7 +66,7 @@ func (c *commandEcEncode) Do(args []string, commandEnv *CommandEnv, writer io.Wr
collection := encodeCommand.String("collection", "", "the collection name")
fullPercentage := encodeCommand.Float64("fullPercent", 95, "the volume reaches the percentage of max volume size")
quietPeriod := encodeCommand.Duration("quietFor", time.Hour, "select volumes without no writes for this period")
- maxParallelization := encodeCommand.Int("maxParallelization", 10, "run up to X tasks in parallel, whenever possible")
+ maxParallelization := encodeCommand.Int("maxParallelization", DefaultMaxParallelization, "run up to X tasks in parallel, whenever possible")
forceChanges := encodeCommand.Bool("force", false, "force the encoding even if the cluster has less than recommended 4 nodes")
shardReplicaPlacement := encodeCommand.String("shardReplicaPlacement", "", "replica placement for EC shards, or master default if empty")
applyBalancing := encodeCommand.Bool("rebalance", false, "re-balance EC shards after creation")