From 260fcd8e1e9912eb5875220cd52984cb8fe5bd41 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 29 Jan 2014 13:34:46 -0800 Subject: [PATCH] reduce the default volume size to 32000MB from 32768MB this avoids problems with busy writing systems from having too many file id assigned while the volume is close to the overflow limit. --- go/weed/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/weed/server.go b/go/weed/server.go index ade040b15..80ea27a9d 100644 --- a/go/weed/server.go +++ b/go/weed/server.go @@ -44,7 +44,7 @@ var ( serverPeers = cmdServer.Flag.String("peers", "", "comma separated ip:masterPort list") masterPort = cmdServer.Flag.Int("masterPort", 9333, "master server http listen port") masterMetaFolder = cmdServer.Flag.String("mdir", os.TempDir(), "data directory to store meta data") - masterVolumeSizeLimitMB = cmdServer.Flag.Uint("volumeSizeLimitMB", 32*1024, "Default Volume Size in MegaBytes") + masterVolumeSizeLimitMB = cmdServer.Flag.Uint("volumeSizeLimitMB", 32*1000, "Default Volume Size in MegaBytes") masterConfFile = cmdServer.Flag.String("conf", "/etc/weedfs/weedfs.conf", "xml configuration file") masterDefaultRepType = cmdServer.Flag.String("defaultReplicationType", "000", "Default replication type if not specified.") volumePort = cmdServer.Flag.Int("port", 8080, "volume server http listen port")