You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/10/13 02:17:41 UTC

[GitHub] [incubator-brpc] Huixxi commented on a change in pull request #1571: Support wr/wrr policy degradation

Huixxi commented on a change in pull request #1571:
URL: https://github.com/apache/incubator-brpc/pull/1571#discussion_r727646284



##########
File path: src/brpc/load_balancer.cpp
##########
@@ -24,6 +24,7 @@
 namespace brpc {
 
 DEFINE_bool(show_lb_in_vars, false, "Describe LoadBalancers in vars");
+DEFINE_bool(wlb_policy_degradation, false, "Weighted LoadBalancers policy degradation");

Review comment:
       > default_weight_of_wlb,表示默认权重值,默认0,如果大于0,表示开启默认权重值。 这样默认权重的大小可以由用户设定
   
   意思是把wlb_policy_degradation替换为default_weight_of_wlb,默认0,同时代表不开启策略降级,若大于0则代表用户开启了策略降级,并且同时也设定了默认的权重大小对吧。




-- 
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-unsubscribe@brpc.apache.org

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



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