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 2021/09/16 06:27:20 UTC

[GitHub] [dubbo] memory7734 commented on issue #8820: 为什么负载均衡负责使用ShortestResponseLoadBalance就避免了LeastActiveLoadBalance的缺点了呢?

memory7734 commented on issue #8820:
URL: https://github.com/apache/dubbo/issues/8820#issuecomment-920614875


   LeastActiveLoadBalance 在性能差异大的两台机器上是有问题的:假设在时间周期内每个请求耗时相同的情况下,两台机器可以处理的最大活跃数量分别为 200 和 1000,那有500个请求过来的时候,性能差的机器已经到达上限200时,不应该再分配额外的请求了。所以“活跃数越低,代表该提供者处理能力越强”,也就不成立了。
   如果使用ShortestResponseLoadBalance 其实是在比较 “排队时长” + “处理时长”,那性能好的机器“排队时长”是小的,会自动分配更多的调用


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



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