Monday, February 19, 2018

Kafka - When kafka Rebalance happens ?

A Rebalance happens when:
1. A consumer JOINS the group
2. A consumer SHUTS DOWN cleanly
3. A consumer is considered DEAD by the group coordinator. This may happen after a crash or when the consumer is busy with
a long-running processing, which means that no heartbeats has been sent in the meanwhile by the consumer to the group
coordinator within the configured session interval.
4. New partitions are added