aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-01-03 00:37:24 -0800
committerChris Lu <chris.lu@gmail.com>2020-01-03 00:37:26 -0800
commit3eafec4b29b9a5090eb6dd5f0ddee6ee1f713792 (patch)
tree9614ba54b9e746bb05d3559aeee63d64f241da75 /weed/command/server.go
parenta3a2e69900290256646f24d9bbd2f204c188af2f (diff)
downloadseaweedfs-3eafec4b29b9a5090eb6dd5f0ddee6ee1f713792.tar.xz
seaweedfs-3eafec4b29b9a5090eb6dd5f0ddee6ee1f713792.zip
volume: add option to limit file size
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 87f404ed3..6aa68b6d2 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -89,6 +89,7 @@ func init() {
serverOptions.v.fixJpgOrientation = cmdServer.Flag.Bool("volume.images.fix.orientation", false, "Adjust jpg orientation when uploading.")
serverOptions.v.readRedirect = cmdServer.Flag.Bool("volume.read.redirect", true, "Redirect moved or non-local volumes.")
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.publicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address")
s3Options.filerBucketsPath = cmdServer.Flag.String("s3.filer.dir.buckets", "/buckets", "folder on filer to store all buckets")