You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "jiao-duan (via GitHub)" <gi...@apache.org> on 2024/11/29 01:53:44 UTC
[I] 实际效果和官方文档不对应 [rocketmq]
jiao-duan opened a new issue, #9004:
URL: https://github.com/apache/rocketmq/issues/9004
### Before Creating the Bug Report
- [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions).
- [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate.
- [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
### Runtime platform environment
MacOS
### RocketMQ version
5.2.0
### JDK Version
1.8
### Describe the Bug
官方文档的描述是5.X版本以后是消息级别的负载:
源码版本为:

源码中PushConsumer使用的还是AllocateMessageQueueAveragely负载均衡类

实际使用和测试都发现,超过队列数以后得消费者都不会被分配对应的队列,那此时不是还是队列粒度的负载均衡么?为何官方文档提到的是消息粒度的?
### Steps to Reproduce
`List<String> cidAll = Arrays.asList("cid-1", "cid-2", "cid-3", "cid-4", "cid-5", "cid-6", "cid-7");
List<MessageQueue> mqAll = Arrays.asList(
new MessageQueue("topic", "broker-a", 0),
new MessageQueue("topic", "broker-a", 1),
new MessageQueue("topic", "broker-a", 2),
new MessageQueue("topic", "broker-a", 3)
);
List<MessageQueue> testallocate = testallocate("group-1", "cid-7", mqAll, cidAll);
System.out.println(testallocate);`
以上是简单的测试用例,发现后面的消费者都是没有分配队列的
### What Did You Expect to See?
我希望看到的是符合官方文档中提到的消息级别的负载均衡
### What Did You See Instead?
无
### Additional Context
_No response_
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 负载均衡的实际效果和官方文档不对应 [rocketmq]
Posted by "jiao-duan (via GitHub)" <gi...@apache.org>.
jiao-duan commented on issue #9004:
URL: https://github.com/apache/rocketmq/issues/9004#issuecomment-2507000404
官方文档说的默认的push和pull都支持啊
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 负载均衡的实际效果和官方文档不对应 [rocketmq]
Posted by "drpmma (via GitHub)" <gi...@apache.org>.
drpmma commented on issue #9004:
URL: https://github.com/apache/rocketmq/issues/9004#issuecomment-2507014826
5.0 SDK指的是这个版本的客户端,https://github.com/apache/rocketmq-clients。
可能理解上会有歧义。
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 实际效果和官方文档不对应 [rocketmq]
Posted by "jiao-duan (via GitHub)" <gi...@apache.org>.
jiao-duan commented on issue #9004:
URL: https://github.com/apache/rocketmq/issues/9004#issuecomment-2506943396
应该相信官方文档描述还是相信实际实验效果和源码?
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 负载均衡的实际效果和官方文档不对应 [rocketmq]
Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin closed issue #9004: 负载均衡的实际效果和官方文档不对应
URL: https://github.com/apache/rocketmq/issues/9004
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] 负载均衡的实际效果和官方文档不对应 [rocketmq]
Posted by "yiduwangkai (via GitHub)" <gi...@apache.org>.
yiduwangkai commented on issue #9004:
URL: https://github.com/apache/rocketmq/issues/9004#issuecomment-2506974939
需要设置消费模式为pop消费
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org