diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-13 13:03:04 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-13 13:03:04 -0800 |
| commit | 8907e6a40ac8c97e7c97f73d45cc528b72deb5ae (patch) | |
| tree | c0b9a141c95ca3b7de314918fd96d57a7085b29c | |
| parent | fe5b9e39cc5a3526a0fdadf8b518b67b02d5451b (diff) | |
| download | seaweedfs-8907e6a40ac8c97e7c97f73d45cc528b72deb5ae.tar.xz seaweedfs-8907e6a40ac8c97e7c97f73d45cc528b72deb5ae.zip | |
add more help messages
| -rw-r--r-- | weed/command/server.go | 2 | ||||
| -rw-r--r-- | weed/command/volume.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 0cb748381..dcf0411fd 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -61,7 +61,7 @@ var ( serverWhiteListOption = cmdServer.Flag.String("whiteList", "", "comma separated Ip addresses having write permission. No limit if empty.") serverDisableHttp = cmdServer.Flag.Bool("disableHttp", false, "disable http requests, only gRPC operations are allowed.") volumeDataFolders = cmdServer.Flag.String("dir", os.TempDir(), "directories to store data files. dir[,dir]...") - volumeMaxDataVolumeCounts = cmdServer.Flag.String("volume.max", "8", "maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured.") + volumeMaxDataVolumeCounts = cmdServer.Flag.String("volume.max", "8", "maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size.") volumeMinFreeSpacePercent = cmdServer.Flag.String("volume.minFreeSpacePercent", "1", "minimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead).") volumeMinFreeSpace = cmdServer.Flag.String("volume.minFreeSpace", "", "min free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.") serverMetricsHttpPort = cmdServer.Flag.Int("metricsPort", 0, "Prometheus metrics listen port") diff --git a/weed/command/volume.go b/weed/command/volume.go index fa4ad3b7f..5b9d94b9a 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -107,7 +107,7 @@ var cmdVolume = &Command{ var ( volumeFolders = cmdVolume.Flag.String("dir", os.TempDir(), "directories to store data files. dir[,dir]...") - maxVolumeCounts = cmdVolume.Flag.String("max", "8", "maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured.") + maxVolumeCounts = cmdVolume.Flag.String("max", "8", "maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size.") volumeWhiteListOption = cmdVolume.Flag.String("whiteList", "", "comma separated Ip addresses having write permission. No limit if empty.") minFreeSpacePercent = cmdVolume.Flag.String("minFreeSpacePercent", "1", "minimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead).") minFreeSpace = cmdVolume.Flag.String("minFreeSpace", "", "min free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.") |
