aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-10-12 21:15:10 -0700
committerchrislu <chris.lu@gmail.com>2022-10-12 21:15:10 -0700
commit9a339a9cfbeae9f1851ed738659d72de913e798b (patch)
tree763483d1bc8cd52900b25967d86105164729a9e2
parentcacc3e883b6285f688eda5718dfc9c9817ea07d0 (diff)
downloadseaweedfs-9a339a9cfbeae9f1851ed738659d72de913e798b.tar.xz
seaweedfs-9a339a9cfbeae9f1851ed738659d72de913e798b.zip
default hasSlowRead to true
-rw-r--r--weed/command/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 42cd4b0cd..526841e28 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -132,7 +132,7 @@ func init() {
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.inflightUploadDataTimeout = cmdServer.Flag.Duration("volume.inflightUploadDataTimeout", 60*time.Second, "inflight upload data wait timeout of volume servers")
- serverOptions.v.hasSlowRead = cmdServer.Flag.Bool("volume.hasSlowRead", false, "<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")
s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port")