React to consumer rebalance
See original GitHub issueFrom @janoskranczler on June 28, 2017 12:14
Hi guys,
Is there any way I can react on a consumer rebalance (Kafka), if autoRebalanceEnabled
is set to false
? In Kafka client there is ConsumerRebalanceListener
, but how can I listen on rebalance in SCS?
(And if I can, what is the simplest way to determine the partition count before and after the rebalance?)
Copied from original issue: spring-cloud/spring-cloud-stream#1004
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
React on Partition Assignment • Alpakka Kafka Documentation
Rebalancing starts with revoking partitions from all consumers in a consumer group and assigning all partitions to consumers in a second phase. During...
Read more >React to consumer rebalance · Issue #1004 · spring-cloud ...
Hi guys, Is there any way I can react on a consumer rebalance (Kafka), if autoRebalanceEnabled is set to false?
Read more >Cooperative Rebalancing in the Kafka Consumer, Streams ...
Any changes to these require the group to react in order to ensure that all topic partitions are being consumed from and that...
Read more >Solving My Weird Kafka Rebalancing Problems & ...
Rebalancing is just that — the process to map each partition to precisely one consumer. While Kafka is rebalancing, all involved consumers' ...
Read more >Kafka Consumer Rebalancing and Its Impact
If the consumer group coordinator doesn't receive heartbeats or brokers don't respond to brokers, then the group rebalances.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@neilg See this section from core spring-cloud-stream: https://github.com/spring-cloud/spring-cloud-stream#code-formatting-guidelines
This commit introduced the ability for apps to provide custom rebalance listener. Closing the issue.