Can a rolling deployment of a Kafka consumer group cause the group to freeze?
So let's consider this scenario,
- we start a rolling deployment
- one consumer leaves the group
- Kafka notices this and triggers a rebalance (hence consumption stops)
- rebalance happens but soon a new consumer wants to join
- also another consumer leaves
- again a new rebalance happens
- (loop till deployment is complete)
So if you have a large enough cluster and it takes some time for the deployment to get completed on one machine (which is usually the case), Will this lead to a complete freeze in consumption?
If yes, What are the strategies to do a consumer group update in production