This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e6c3941 doc: modify the document to make it consistent with the code 
(#1821)
0e6c3941 is described below

commit 0e6c39413c445f57ea651920c94fbc35817f4965
Author: TousakaRin <[email protected]>
AuthorDate: Thu Jun 23 17:42:56 2022 +0800

    doc: modify the document to make it consistent with the code (#1821)
    
    Co-authored-by: helei.sig11 <[email protected]>
---
 docs/cn/auto_concurrency_limiter.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/cn/auto_concurrency_limiter.md 
b/docs/cn/auto_concurrency_limiter.md
index 40a11c4f..2e6f0ea5 100644
--- a/docs/cn/auto_concurrency_limiter.md
+++ b/docs/cn/auto_concurrency_limiter.md
@@ -72,6 +72,9 @@ max_qps是最近一段时间测量到的qps的极大值。
 
 min_latency是最近一段时间测量到的latency较小值的ema,是noload_latency的估算值。
 
+注意:当计算出来的 max_concurrency 和当前的 max_concurrency 的值不同时,每次对 max_concurrency 
的调整的比例有一个上限,让 max_concurrency
+的[变化更为平滑](https://github.com/apache/incubator-brpc/blob/master/src/brpc/policy/auto_concurrency_limiter.cpp#L249)。
+
 
当服务处于低负载时,min_latency约等于noload_latency,此时计算出来的max_concurrency会高于concurrency,但低于best_max_concurrency,给流量上涨留探索空间。而当服务过载时,服务的qps约等于max_qps,同时latency开始明显超过min_latency,此时max_concurrency则会接近concurrency,并通过定期衰减避免远离best_max_concurrency,保证服务不会过载。
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to