kafka群集,一个节点失败时制作人暂停

发布于 2025-02-09 05:02:18 字数 266 浏览 1 评论 0原文

我有一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文