You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/04/18 02:51:32 UTC

[GitHub] [rocketmq] airbaby opened a new issue #1945: topic队列数与consumer数量不能整除,负载均衡策略存在分配不均

airbaby opened a new issue #1945: topic队列数与consumer数量不能整除,负载均衡策略存在分配不均
URL: https://github.com/apache/rocketmq/issues/1945
 
 
   RebalanceImpl.rebalanceByTopic();
   consumer的(clientId)消费费多个topic队列时,存在排序靠前的ClientId可能消费队列较多(负载大),是否Collections.sort()可以采用shuffle()方式,确保可以随机平均;

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] coder-zzzz commented on issue #1945: 当topic队列数与consumer数量不能整除,均衡策略存在一边倾斜

Posted by GitBox <gi...@apache.org>.
coder-zzzz commented on issue #1945: 当topic队列数与consumer数量不能整除,均衡策略存在一边倾斜
URL: https://github.com/apache/rocketmq/issues/1945#issuecomment-615754647
 
 
   AllocateMessageQueueAveragely这个策略?
   按我的理解,queue=5,consumer=2,则consumer1会消费queue0-2(3个queue),consumer2会消费queue3-4(两个queue)。不能整除的情况下,肯定会有某个consumer要多干点活

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services