aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-29 15:46:26 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-29 15:46:29 -0700
commit47047516d61614fddce7163c1bca2e6e5e83f01f (patch)
tree41fe9733617e066a3d5d0c835eb4bf33b1efd0c9 /weed/command/volume.go
parent6f8b426f4fcf3933258f29afb6518ddf3e74a9d3 (diff)
downloadseaweedfs-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/volume.go')
-rw-r--r--weed/command/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index d73c24ed1..ce5992665 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -80,7 +80,7 @@ func init() {
v.cpuProfile = cmdVolume.Flag.String("cpuprofile", "", "cpu profile output file")
v.memProfile = cmdVolume.Flag.String("memprofile", "", "memory profile output file")
v.compactionMBPerSecond = cmdVolume.Flag.Int("compactionMBps", 0, "limit background compaction or copying speed in mega bytes per second")
- v.fileSizeLimitMB = cmdVolume.Flag.Int("fileSizeLimitMB", 1024, "limit file size to avoid out of memory")
+ v.fileSizeLimitMB = cmdVolume.Flag.Int("fileSizeLimitMB", 256, "limit file size to avoid out of memory")
v.pprof = cmdVolume.Flag.Bool("pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile")
v.metricsHttpPort = cmdVolume.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")
}