Parallel consumer pods monitoring by Kubernetes #403
Replies: 2 comments 3 replies
-
Implement custom
Expose to spring health management
Change kubernetes liveliness endpoint to pcHealthIndicator in terraform module
|
Beta Was this translation helpful? Give feedback.
-
Hi @astubbs i am getting same error with spring boot while rebalancing is happening. below are the steps to reproduce the scenario. using PERIODIC_CONSUMER_SYNC mode with 1 sec interval and CooperativeStickyAssignor.
org.apache.kafka.common.errors.RebalanceInProgressException: Offset commit cannot be completed since the consumer is undergoing a rebalance for auto partition assignment. You can try completing the rebalance by calling poll() and then retry the operation. and after that now pod1 has no cosumer and all parititions will be assigned to pod2. so i am not able to scale application. can you please help on solution. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We are using Kubernetes to orchestrate parallel consumer pods. I know it's not perfect for Kafka consumer auto scaling but at least we want to get pods auto created if PC is leaving the consumer group with below exception. Currently the issue I am facing is - with this exception the app is not shutdown and the health endpoints are still alive so Kubernetes does not replace the pod which is not registered or subscribed to any of the partitions.
Error from poll control thread, will attempt controlled shutdown, then rethrow. Error: Timeout waiting for commit response PT30S to request ConsumerOffsetCommitter.CommitRequest(id=xxxxxx, requestedAtMs=xxxxx)
Would really appreciate any help on this!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions