aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-09-15 03:11:32 -0700
committerchrislu <chris.lu@gmail.com>2022-09-15 03:11:32 -0700
commit896a85d6e4858a48018fcb7fc41026fcb3861dea (patch)
treec104b8952796015daccd4e7e2b931ad7ce259d77 /weed/command/server.go
parent21c058790010aa9224568248f2d9bf9c324b6747 (diff)
downloadseaweedfs-896a85d6e4858a48018fcb7fc41026fcb3861dea.tar.xz
seaweedfs-896a85d6e4858a48018fcb7fc41026fcb3861dea.zip
volume: add "hasSlowRead" option to customize read optimization
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 8dfa63e34..6db57744c 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -131,6 +131,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, "if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.")
s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port")
s3Options.portGrpc = cmdServer.Flag.Int("s3.port.grpc", 0, "s3 server grpc listen port")