diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-08 23:25:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-08 23:25:16 -0700 |
| commit | 734c980040b77d19750cf4f00bb9a39312093d91 (patch) | |
| tree | 11e54af8839b8fbc4222ac0cbb16b843dfff47c1 /weed/command/server.go | |
| parent | 96ce85f5ae6281c14a4a190dcf5f527321c50472 (diff) | |
| download | seaweedfs-734c980040b77d19750cf4f00bb9a39312093d91.tar.xz seaweedfs-734c980040b77d19750cf4f00bb9a39312093d91.zip | |
volume: support concurrent download data size limit
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 9bac2be97..fe10b24f7 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -116,6 +116,7 @@ func init() { serverOptions.v.compactionMBPerSecond = cmdServer.Flag.Int("volume.compactionMBps", 0, "limit compaction speed in mega bytes per second") serverOptions.v.fileSizeLimitMB = cmdServer.Flag.Int("volume.fileSizeLimitMB", 256, "limit file size to avoid out of memory") serverOptions.v.concurrentUploadLimitMB = cmdServer.Flag.Int("volume.concurrentUploadLimitMB", 64, "limit total concurrent upload size") + serverOptions.v.concurrentDownloadLimitMB = cmdServer.Flag.Int("volume.concurrentDownloadLimitMB", 64, "limit total concurrent download size") serverOptions.v.publicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address") serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server") serverOptions.v.pprof = cmdServer.Flag.Bool("volume.pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile") |
