GreateCode commented on issue #2668:
URL: https://github.com/apache/brpc/issues/2668#issuecomment-2267290639

   > 容灾方面是不是可以全面一点? (周期或者滑动窗口)统计请求的成功率,根据成功率可以做以下策略:
   > 
   > 1. lb选实例时,减少访问可用性弱的实例;
   > 2. 减少重试(包括backup request)。
   > 3. 其他,待补充。
   
   1. lb可以参考现有的la或者通过LoadBalancerExtension()->RegisterOrDie("namexxxx", new 
LBXXX)自定义新的。
   2. 
但减少重试是个lazy行为,一开始发起A、B、C请求都配上backup_request,到backup_request_ms后,A已完成,只有B、C需要backup_request,假如此时只允许50%触发backup_request。就得在HandleBackupRequest里一开始拦截一下,避免触发EBACKUPREQUEST。这个feature需要支持下。


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to