日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

kafka消费端Attempt to heartbeat failed since group is rebalancing

發(fā)布時間:2023/12/20 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 kafka消费端Attempt to heartbeat failed since group is rebalancing 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

解讀

生產(chǎn)對接,啟動消費端出現(xiàn)Attempt to heartbeat failed since group is rebalancing,它是kafka消費者組的心跳機制,用于檢測超時不能工作的消費者。
當有新的消費者加入的時候,kafka消費者組啟動rebalance機制,即重平衡,重新分配資源。同時檢測組內(nèi)消費者成員是否可以正常工作。如果心跳檢測失敗,則會報Attempt to heartbeat failed since group is rebalancing

2021-07-21 15:58:58.574 INFO 18804 --- [ronmental-group] o.a.k.c.c.internals.AbstractCoordinator : [Consumer clientId=consumer-4, groupId=ds-BEnvironmental-group] Attempt to heartbeat failed since group is rebalancing 2021-07-21 15:59:01.611 INFO 18804 --- [ronmental-group] o.a.k.c.c.internals.AbstractCoordinator : [Consumer clientId=consumer-4, groupId=ds-BEnvironmental-group] Attempt to heartbeat failed since group is rebalancing 2021-07-21 15:59:04.636 INFO 18804 --- [ronmental-group] o.a.k.c.c.internals.AbstractCoordinator : [Consumer clientId=consumer-4, groupId=ds-BEnvironmental-group] Attempt to heartbeat failed since group is rebalancing

當超過max.poll.interval.ms這個時間時,消費者組會放棄檢測,將消費者從組內(nèi)剔除,出現(xiàn)下圖異常信息

This member will leave the group because consumer poll timeout has expired. This means the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time processing messages. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records.

總結(jié)

以上是生活随笔為你收集整理的kafka消费端Attempt to heartbeat failed since group is rebalancing的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。