Huixxi opened a new issue #1570:
URL: https://github.com/apache/incubator-brpc/issues/1570


   **Describe the bug (描述bug)**
   
当前的wr/wrr负载均衡策略下,未配置权重的下游机器无法被添加到本次服务的机器列表当中,当用户忘记配置下游机器的权重时可能会因为机器列表为空无法选择一台下游机器而导致程序运行出错,提供策略降级机制可避免这种情况发生。
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
通过给工作在这两种负载均衡机制下的未配置权重值的下游机器设置一个默认权重值1,从而这两种策略便自动降级至各自的非加权版本r/rr,并通过增加一个gflags:wlb_policy_degradation(默认关闭,false)来控制,当打开这个开关的时候(true)执行上述逻辑,默认条件下,则维持原有逻辑,即过滤未配置权重的下游机器。


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