Repository navigation
Parallel consumer pods monitoring by Kubernetes #403
Replies: 3 comments 3 replies
|
Implement custom Expose to spring health management Change kubernetes liveliness endpoint to pcHealthIndicator in terraform module |
|
Hi Antony Stubbs (@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. |
|
neurodev26, RavindraDobariya - both of your failures are fixed in v0.6.0.0 of the maintained fork, and the health indicator in this thread is still the right shape to run beside it.
On the health endpoint: On the auto-scaling half of your question, which the liveness probe does not answer: the fork's design for it is that PC never spawns instances but recommends - each instance exposes a delta vote, +1 when it has plateaued at its own sustainable concurrency and is still behind, -1 when under-used, 0 otherwise, and the HPA or KEDA sums the votes and scales the deployment. That encodes "another pod would actually help" rather than "we are behind", which is what makes lag-based scaling flap when the bottleneck is downstream. It is a design note today, not code: astubbs#227, this tracker's #21, and the per-instance half it builds on, self-tuning concurrency, is an open pull request on the fork (astubbs#333). A comment on astubbs#227 with your pod topology would shape what gets built. The coordinates changed with the fork - on Maven Central it is now: <dependency>
<groupId>bz.stub.parallelconsumer</groupId>
<artifactId>parallel-consumer-core</artifactId>
<version>0.6.0.0</version>
</dependency>( find . -name '*.java' -exec sed -i 's/io\.confluent\.parallelconsumer/bz.stub.parallelconsumer/g' {} + |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions