You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/08/15 01:38:53 UTC

[GitHub] yangpancode commented on issue #2249: How to choose a loadbalance strategy?

yangpancode commented on issue #2249: How to choose a loadbalance strategy?
URL: https://github.com/apache/incubator-dubbo/issues/2249#issuecomment-413068137
 
 
   1、随机算法在调用量大的情况下,长的时间维度是均衡的,但是瞬时的均衡性不是太好,这就会导致某个时候有一台机器负载非常大,当然是存在一定概率性。长时间肯定是均衡的,短时间就不一定了,而往往出问题都是在那较短的时间发生。
   2、很理想的方法是,LeastActive LoadBalance,但是这个方法我不太明白为什么计数正对的是每个方法,而不是整个provider。整个每个方法的话,其实还是不能保证整个provider的均衡。比如有一台机器上A方法卡死,B方法再该服务器上调用的次数最少,此时会把B方法调用分配到该机器上,这样就会出现问题了。如果最小活跃数是针对整个provider的话,这个问题就好多了。不是太明白作者这样做的用意,后期是不是可以支持针对整个provider的LeastActive实现。

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org