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: