serverDisableHttp=cmdServer.Flag.Bool("disableHttp",false,"disable http requests, only gRPC operations are allowed.")
volumeDataFolders=cmdServer.Flag.String("dir",os.TempDir(),"directories to store data files. dir[,dir]...")
volumeMaxDataVolumeCounts=cmdServer.Flag.String("volume.max","7","maximum numbers of volumes, count[,count]... If set to zero on non-windows OS, the limit will be auto configured.")
pulseSeconds=cmdServer.Flag.Int("pulseSeconds",5,"number of seconds between heartbeats")
volumeMinFreeSpacePercent=cmdServer.Flag.String("volume.minFreeSpacePercent","0","minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly")
// pulseSeconds = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats")
isStartingFiler=cmdServer.Flag.Bool("filer",false,"whether to start filer")
isStartingS3=cmdServer.Flag.Bool("s3",false,"whether to start S3 gateway")
isStartingMsgBroker=cmdServer.Flag.Bool("msgBroker",false,"whether to start message broker")
serverWhiteList[]string
False=false
)
funcinit(){
@ -93,6 +97,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")
v.pulseSeconds=cmdVolume.Flag.Int("pulseSeconds",5,"number of seconds between heartbeats, must be smaller than or equal to the master's setting")
// v.pulseSeconds = cmdVolume.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats, must be smaller than or equal to the master's setting")
v.compactionMBPerSecond=cmdVolume.Flag.Int("compactionMBps",0,"limit background compaction or copying speed in mega bytes per second")
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")
}
varcmdVolume=&Command{
@ -87,6 +92,7 @@ var (
volumeFolders=cmdVolume.Flag.String("dir",os.TempDir(),"directories to store data files. dir[,dir]...")
maxVolumeCounts=cmdVolume.Flag.String("max","7","maximum numbers of volumes, count[,count]... If set to zero on non-windows OS, the limit will be auto configured.")
volumeWhiteListOption=cmdVolume.Flag.String("whiteList","","comma separated Ip addresses having write permission. No limit if empty.")
minFreeSpacePercent=cmdVolume.Flag.String("minFreeSpacePercent ","0","minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly")