From 85b34201080ae1cc59319b72e0cf8afc522da8ca Mon Sep 17 00:00:00 2001 From: famosss <13281440@qq.com> Date: Fri, 16 Sep 2022 16:05:23 +0800 Subject: [PATCH] Updated Optimization (markdown) --- Optimization.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Optimization.md b/Optimization.md index 9070c62..25ae8e9 100644 --- a/Optimization.md +++ b/Optimization.md @@ -136,6 +136,14 @@ Actually, the actual data files have the collection name as the prefix, e.g., "p If you need to delete them later see https://github.com/seaweedfs/seaweedfs/wiki/Master-Server-API#delete-collection +## Optimized when the network is unstable + +By default, if there is a slow read request caused by network problems, this request will block other requests, such as writing. + +Set `volume.hasSlowRead` to true,this prevents slow reads from blocking other requests,but large file read P99 latency will increase. + +Increasing `volume.readBufferSize` (for example, set to `filer.maxMB` size) can make read requests require fewer locks , which can fix the P99 latency problem caused by `volume.hasSlowRead` + ## Logging When going to production, you will want to collect the logs. SeaweedFS uses glog. Here are some examples: