serverOptions.v.pprof=cmdServer.Flag.Bool("volume.pprof",false,"enable pprof http handlers. precludes --memprofile and --cpuprofile")
serverOptions.v.pprof=cmdServer.Flag.Bool("volume.pprof",false,"enable pprof http handlers. precludes --memprofile and --cpuprofile")
serverOptions.v.idxFolder=cmdServer.Flag.String("volume.dir.idx","","directory to store .idx files")
serverOptions.v.idxFolder=cmdServer.Flag.String("volume.dir.idx","","directory to store .idx files")
serverOptions.v.inflightUploadDataTimeout=cmdServer.Flag.Duration("volume.inflightUploadDataTimeout",60*time.Second,"inflight upload data wait timeout of volume servers")
serverOptions.v.inflightUploadDataTimeout=cmdServer.Flag.Duration("volume.inflightUploadDataTimeout",60*time.Second,"inflight upload data wait timeout of volume servers")
serverOptions.v.inflightDownloadDataTimeout=cmdServer.Flag.Duration("volume.inflightDownloadDataTimeout",60*time.Second,"inflight download data wait timeout of volume servers")
serverOptions.v.hasSlowRead=cmdServer.Flag.Bool("volume.hasSlowRead",true,"<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.")
serverOptions.v.hasSlowRead=cmdServer.Flag.Bool("volume.hasSlowRead",true,"<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.")
serverOptions.v.readBufferSizeMB=cmdServer.Flag.Int("volume.readBufferSizeMB",4,"<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally")
serverOptions.v.readBufferSizeMB=cmdServer.Flag.Int("volume.readBufferSizeMB",4,"<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally")
@ -68,10 +68,11 @@ type VolumeServerOptions struct {
metricsHttpPort*int
metricsHttpPort*int
metricsHttpIp*string
metricsHttpIp*string
// pulseSeconds *int
// pulseSeconds *int
inflightUploadDataTimeout*time.Duration
hasSlowRead*bool
readBufferSizeMB*int
ldbTimeout*int64
inflightUploadDataTimeout*time.Duration
inflightDownloadDataTimeout*time.Duration
hasSlowRead*bool
readBufferSizeMB*int
ldbTimeout*int64
}
}
funcinit(){
funcinit(){
@ -104,6 +105,7 @@ func init() {
v.metricsHttpIp=cmdVolume.Flag.String("metricsIp","","metrics listen ip. If empty, default to same as -ip.bind option.")
v.metricsHttpIp=cmdVolume.Flag.String("metricsIp","","metrics listen ip. If empty, default to same as -ip.bind option.")
v.idxFolder=cmdVolume.Flag.String("dir.idx","","directory to store .idx files")
v.idxFolder=cmdVolume.Flag.String("dir.idx","","directory to store .idx files")
v.inflightUploadDataTimeout=cmdVolume.Flag.Duration("inflightUploadDataTimeout",60*time.Second,"inflight upload data wait timeout of volume servers")
v.inflightUploadDataTimeout=cmdVolume.Flag.Duration("inflightUploadDataTimeout",60*time.Second,"inflight upload data wait timeout of volume servers")
v.inflightDownloadDataTimeout=cmdVolume.Flag.Duration("inflightDownloadDataTimeout",60*time.Second,"inflight download data wait timeout of volume servers")
v.hasSlowRead=cmdVolume.Flag.Bool("hasSlowRead",true,"<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.")
v.hasSlowRead=cmdVolume.Flag.Bool("hasSlowRead",true,"<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.")
v.readBufferSizeMB=cmdVolume.Flag.Int("readBufferSizeMB",4,"<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally.")
v.readBufferSizeMB=cmdVolume.Flag.Int("readBufferSizeMB",4,"<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally.")
}
}
@ -261,6 +263,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v