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:
Claude
2026-12-02 00:07:44 +05:30
parent 5facfdc212
commit 0b31b49571
24 changed files with 1212 additions and 0 deletions
@@ -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.