Add keda: Spring Boot 4.2.0 Kafka consumers under KEDA autoscaling (partition cap, lag maths, rebalances, SIGTERM vs SIGKILL)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
The real Spring Boot app (OrderListener, 50 ms of work per record, max.poll.records=20).
|
||||
200 records on one partition. Close the context after >= 25 records were processed.
|
||||
|
||||
pod A: context.close() took ~740 ms; processed=40; committed offset=40
|
||||
pod B (same group): processed=160 until lag=0
|
||||
records processed twice across A and B: 0
|
||||
|
||||
Spring's container finished the in-flight batch and committed it before stopping.
|
||||
Reference in New Issue
Block a user