aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-05-07 14:02:01 -0700
committerChris Lu <chris.lu@gmail.com>2019-05-07 14:02:01 -0700
commit69b7dd398d9fa34635687f05e29ead35605bb52e (patch)
treeed80648cf28265394255da9f7916d6420e906ec0
parentd01807ba05b0d40f150d933d2bded925e5443903 (diff)
downloadseaweedfs-69b7dd398d9fa34635687f05e29ead35605bb52e.tar.xz
seaweedfs-69b7dd398d9fa34635687f05e29ead35605bb52e.zip
adjust help message
-rw-r--r--weed/shell/command_volume_balance.go7
1 files changed, 2 insertions, 5 deletions
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|<collection_name>] [-f] [-dataCenter=<data_center_name>]
Algorithm:
+
For each type of volume server (different max volume count limit){
for each collection {
balanceWritableVolumes()
balanceReadOnlyVolumes()
}
- for all volumes {
- balanceWritableVolumes()
- balanceReadOnlyVolumes()
- }
}
func balanceWritableVolumes(){