diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-17 10:50:06 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-17 10:56:28 -0700 |
| commit | 10d5b4b32bb6dce8ecec952467dea50666148ac6 (patch) | |
| tree | ac1a7ba95c9b5d9592141ec69dd209d867493930 /weed/command/volume.go | |
| parent | 3fc261d27c90fc06c1d555dd998d7535b844a746 (diff) | |
| download | seaweedfs-10d5b4b32bb6dce8ecec952467dea50666148ac6.tar.xz seaweedfs-10d5b4b32bb6dce8ecec952467dea50666148ac6.zip | |
volume server: rename readBufferSize to readBufferSizeMB
Diffstat (limited to 'weed/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index 5b62a4844..24945d0e3 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -67,7 +67,7 @@ type VolumeServerOptions struct { // pulseSeconds *int inflightUploadDataTimeout *time.Duration hasSlowRead *bool - readBufferSize *int + readBufferSizeMB *int } func init() { @@ -99,7 +99,7 @@ func init() { 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.hasSlowRead = cmdVolume.Flag.Bool("hasSlowRead", false, "<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.") - v.readBufferSize = cmdVolume.Flag.Int("readBufferSize", 1024 * 1024, "<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.") } var cmdVolume = &Command{ @@ -248,7 +248,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v int64(*v.concurrentDownloadLimitMB)*1024*1024, *v.inflightUploadDataTimeout, *v.hasSlowRead, - *v.readBufferSize, + *v.readBufferSizeMB, ) // starting grpc server grpcS := v.startGrpcService(volumeServer) |
