jamesge commented on a change in pull request #684: add doc for circuit breaker
URL: https://github.com/apache/incubator-brpc/pull/684#discussion_r264181659
 
 

 ##########
 File path: docs/cn/circuit_breaker.md
 ##########
 @@ -0,0 +1,62 @@
+# 熔断功能
+当我们发起一个rpc之后,brpc首先会从名字服务(naming 
service)拿到一个可用节点列表,之后根据负载均衡策略挑选出一个节点作为实际访问的节点。当某个节点出现故障时,brpc能够自动将它从可用节点列表中剔除,并周期性的对故障节点进行健康检查。
+
+# 保守的熔断策略
+brpc 
默认会提供保守的熔断策略,在保守的熔断策略下,brpc只有在发现节点无法建立连接时才会将该节点熔断。当某一次rpc返回以下错误时,brpc会认为目标节点无法建立连接,并进行熔断:ECONNREFUSED
 、ENETUNREACH、EHOSTUNREACH、EINVAL。
 
 Review comment:
   建议"保守的熔断策略"统一为"默认熔断策略","更激进的熔断策略“统一为"可选熔断策略"

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to