You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ca...@apache.org on 2021/10/11 10:51:10 UTC

[incubator-brpc] branch master updated: doc(circuit_breaker): add ema wiki link

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

caidj 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 1047626  doc(circuit_breaker): add ema wiki link
     new b0fbaac  Merge pull request #1575 from JiaoZiLang/master
1047626 is described below

commit 10476265b67efaed95bad85354d6f0de0adf867a
Author: jiaozilang <qq...@gmail.com>
AuthorDate: Sun Oct 10 15:36:19 2021 +0800

    doc(circuit_breaker): add ema wiki link
---
 docs/cn/circuit_breaker.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/cn/circuit_breaker.md b/docs/cn/circuit_breaker.md
index 0a06fa8..cfdafed 100644
--- a/docs/cn/circuit_breaker.md
+++ b/docs/cn/circuit_breaker.md
@@ -22,7 +22,7 @@ option.enable_circuit_breaker = true;
 可选的熔断由CircuitBreaker实现,在开启了熔断之后,CircuitBreaker会记录每一个请求的处理结果,并维护一个累计出错时长,记为acc_error_cost,当acc_error_cost > max_error_cost时,熔断该节点。
 
 **每次请求返回成功之后,更新max_error_cost:**
-1. 首先需要更新latency的EMA值,记为ema_latency:  ema_latency = ema_latency * alpha + (1 - alpha) * latency。
+1. 首先需要更新latency的[EMA](https://en.wikipedia.org/wiki/Moving_average)值,记为ema_latency:  ema_latency = ema_latency * alpha + (1 - alpha) * latency。
 2. 之后根据ema_latency更新max_error_cost: max_error_cost = window_size * max_error_rate * ema_latency。
 
 

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