diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-29 15:46:26 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-29 15:46:29 -0700 |
| commit | 47047516d61614fddce7163c1bca2e6e5e83f01f (patch) | |
| tree | 41fe9733617e066a3d5d0c835eb4bf33b1efd0c9 /weed/command/server.go | |
| parent | 6f8b426f4fcf3933258f29afb6518ddf3e74a9d3 (diff) | |
| download | seaweedfs-47047516d61614fddce7163c1bca2e6e5e83f01f.tar.xz seaweedfs-47047516d61614fddce7163c1bca2e6e5e83f01f.zip | |
Revert "increase default volume file size limit to 1024"
This reverts commit 0983060a
I am confused why this was changed to 1024 by myself. 1GB should be too large for most cases.
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index d06b1d40a..4a9c2411a 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -101,7 +101,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", 1024, "limit file size to avoid out of memory") + 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") 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") |
