diff options
| author | famosss <zzq09494@ly.com> | 2022-09-16 15:30:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-16 00:30:40 -0700 |
| commit | d949a238b83dc05fe79a1fb02a047a25355feb7b (patch) | |
| tree | 11cfe94e1ee8c09bfe5f67716987e62e1edc3f39 /weed/command/server.go | |
| parent | cf90f76a35df8c8509ad3ccece566ecb0b74cf66 (diff) | |
| download | seaweedfs-d949a238b83dc05fe79a1fb02a047a25355feb7b.tar.xz seaweedfs-d949a238b83dc05fe79a1fb02a047a25355feb7b.zip | |
volume: add "readBufSize" option to customize read optimization (#3702)
* simplify a bit
* feat: volume: add "readBufSize" option to customize read optimization
* refactor : redbufSIze -> readBufferSize
* simplify a bit
* simplify a bit
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 74f0e582e..78b52ea4b 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -132,6 +132,7 @@ func init() { 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.readBufferSize = cmdServer.Flag.Int("volume.readBufferSize", 1024 * 1024, "<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") s3Options.portGrpc = cmdServer.Flag.Int("s3.port.grpc", 0, "s3 server grpc listen port") |
