broker的slave节点消费太慢问题 #7847
18191518054
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
还有一个疑问,我使用的版本是4.9.4这里通知新消息到达会通知两次 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我从文档中了解到Broker的Slave节点负责备份 Master 的数据,以及备用选举。那为什么消费者可以监听brokerId是非0的节点(Slave),当我在节点slave节点时,消费者获取消息会非常慢,通过Arthas定位分析出具体原因,代码如下:

其中就有一个判断,当节点非SLAVE是,才会通知新消息到来,这样是不是可以说明我们只能监听主节点进行消费?
Beta Was this translation helpful? Give feedback.
All reactions