'Make kafka consumer group inactive
My biggest question is that do we have a concept in kafka called as consumer group to be inactive/active.
I am not sure how to achieve this in my local kafka server.
Can anyone help in how to do the kafka consumer group to inactive/active state?
Solution 1:[1]
If you have Confluent Control Center, you can see consumer section , if 'number of consumers' column is 0 then consumer group is inactive and visa versa
Solution 2:[2]
If you have an active Consumer that is reading message, and the offsets are being commited back to Kafka, then you can confidently say, that is in an active state, as far as the Consumer Group is concerned.
If the group is rebalancing, consumers die periodically, or there is no more any consumers reading from a topic, then it is inactive.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | None for Nothing |
Solution 2 | OneCricketeer |