diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2025-05-13 16:59:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-13 07:59:26 -0700 |
| commit | 0be020b0fab7419bb55fc5159dd699be56e2a605 (patch) | |
| tree | 22cbab2eb2f771b9f2da7f0410c4f5486c6bca03 /weed/shell/command_ec_balance.go | |
| parent | ba1d82db90235fb7ee589bce94cd575e2a16e26e (diff) | |
| download | seaweedfs-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_balance.go')
| -rw-r--r-- | weed/shell/command_ec_balance.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_balance.go b/weed/shell/command_ec_balance.go index 08bbd2a22..96c59f9da 100644 --- a/weed/shell/command_ec_balance.go +++ b/weed/shell/command_ec_balance.go @@ -35,7 +35,7 @@ func (c *commandEcBalance) Do(args []string, commandEnv *CommandEnv, writer io.W collection := balanceCommand.String("collection", "EACH_COLLECTION", "collection name, or \"EACH_COLLECTION\" for each collection") dc := balanceCommand.String("dataCenter", "", "only apply the balancing for this dataCenter") shardReplicaPlacement := balanceCommand.String("shardReplicaPlacement", "", "replica placement for EC shards, or master default if empty") - maxParallelization := balanceCommand.Int("maxParallelization", 10, "run up to X tasks in parallel, whenever possible") + maxParallelization := balanceCommand.Int("maxParallelization", DefaultMaxParallelization, "run up to X tasks in parallel, whenever possible") applyBalancing := balanceCommand.Bool("force", false, "apply the balancing plan") if err = balanceCommand.Parse(args); err != nil { return nil |
