You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by le...@apache.org on 2022/07/12 12:06:39 UTC

[incubator-brpc] branch master updated: auto concurrency limiter: update the doc.

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

leander 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 d99110bc auto concurrency limiter: update the doc.
     new cb291ad4 Merge pull request #1834 from TousakaRin/helei_update_doc_for_auto_concurrency
d99110bc is described below

commit d99110bc558108962238c392bacf033d510a960f
Author: lei he <lh...@163.com>
AuthorDate: Tue Jul 12 20:02:24 2022 +0800

    auto concurrency limiter: update the doc.
    
    Update the documentation for auto concurrency limiter, to make it
    consistent with the code.
    
    Signed-off-by: lei he <lh...@163.com>
---
 docs/cn/auto_concurrency_limiter.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/cn/auto_concurrency_limiter.md b/docs/cn/auto_concurrency_limiter.md
index 2e6f0ea5..e6f45740 100644
--- a/docs/cn/auto_concurrency_limiter.md
+++ b/docs/cn/auto_concurrency_limiter.md
@@ -113,7 +113,7 @@ min_latency是最近一段时间测量到的latency较小值的ema,是noload_l
 为了减少个别窗口的抖动对限流算法的影响,同时尽量降低计算开销,计算min_latency时会通过使用[EMA](https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average)来进行平滑处理:
 
 ```
-if latency > min_latency:
+if latency < min_latency:
     min_latency = latency * ema_alpha  + (1 - ema_alpha) * min_latency
 else:
     do_nothing


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org