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.")
volumeFreeDiskSpaceWatermark=cmdServer.Flag.String("volume.freeDiskSpaceWatermark","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")
@ -52,6 +52,7 @@ type VolumeServerOptions struct {
memProfile*string
compactionMBPerSecond*int
fileSizeLimitMB*int
freeDiskSpaceWatermark[]float32
}
funcinit(){
@ -87,6 +88,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.")
freeDiskSpaceWatermark=cmdVolume.Flag.String("freeDiskSpaceWatermark","0","minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly")