diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go index 0fcd95dba..ed1e26d42 100644 --- a/weed/shell/command_volume_balance.go +++ b/weed/shell/command_volume_balance.go @@ -27,18 +27,15 @@ func (c *commandVolumeBalance) Name() string { func (c *commandVolumeBalance) Help() string { return `balance all volumes among volume servers - volume.balance [-c collectionName] [-f] + volume.balance [-c ALL|EACH_COLLECTION|] [-f] [-dataCenter=] Algorithm: + For each type of volume server (different max volume count limit){ for each collection { balanceWritableVolumes() balanceReadOnlyVolumes() } - for all volumes { - balanceWritableVolumes() - balanceReadOnlyVolumes() - } } func balanceWritableVolumes(){