kafka群集,一个节点失败时制作人暂停
我有一个3节点KAFKA群集,其复制因子为3 , min在2 和的同步复制中,
设置为所有。
一切正常,直到我关闭一个经纪人节点,然后Java生产商停止生产约15秒钟,直到再次工作。我已经发现此延迟是Zookeeper会话超时MS
值。看起来制片人一直在等到新的分区领导者当选为止,这显然只有在Zookeeper会议定时之后才发生。
有人知道这种行为是否正常吗?是否有可能将这种延迟减少到像几个MS一样?我希望在一个节点失败后立即开关。
I have a 3 node Kafka cluster with a replication factor of 3
, min in sync replicas of 2
and required acks set to all
.
Everything works fine until I turn off one broker node, then the Java Producer stops producing for ~15 seconds until it works again. I have figured out that this delay is the zookeeper session timeout ms
value. It looks like the Producer is waiting until new partition leaders are elected, and this apparently only occurs after the zookeeper session timed out.
Does anyone know if this behavior is normal and if it's possible to reduce this delay to like a few Ms? I would like that the Producer switches instantly after one node fails.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论