aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorfamosss <zzq09494@ly.com>2022-10-13 12:13:26 +0800
committerGitHub <noreply@github.com>2022-10-12 21:13:26 -0700
commitcacc3e883b6285f688eda5718dfc9c9817ea07d0 (patch)
tree6cfff933f3e63bb6e570bc8f6fd4a29b01b32fd6 /weed/command/volume.go
parentbf5e45b66a29e15553ebc5b63b6d414ffca5ce6a (diff)
downloadseaweedfs-cacc3e883b6285f688eda5718dfc9c9817ea07d0.tar.xz
seaweedfs-cacc3e883b6285f688eda5718dfc9c9817ea07d0.zip
volume server:set the default value of "hasSlowRead" to true (#3710)
* simplify a bit * feat: volume: add "readBufSize" option to customize read optimization * refactor : redbufSIze -> readBufferSize * simplify a bit * simplify a bit * volume server:set the default value of "hasSlowRead" to true
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 4c6bb20c2..e0bc8b8fe 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -98,7 +98,7 @@ func init() {
v.metricsHttpPort = cmdVolume.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")
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.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.")
}