ScaledJob - Scaling up and scaling down behavior #1546
Unanswered
thsbt
asked this question in
Q&A / Need Help
Replies: 1 comment 1 reply
-
I can recommend you check the job configuration options for parallelism: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm currently working on a PoC in order to test KEDA. Unfortunately I'm facing behaviors that I cannot understand 😢, that's why I'm asking for your help !
Use case:
In a Kubernetes cluster I have a Kafka broker and KEDA 2.1.0 deployed. What I want to do is send a messages on a specific Kafka topic and, thanks to KEDA, spawn a Job in order to read it (my code only reads 1 message, prints it and terminates). Actually, I achieved to do this 🍾
Incomprehensible behavior:
What I cannot understand is when I send several messages to my Kafka topic. In this case, a Job spawns, reads a message, finishes, then another Job spawns, reads a message, etc. until all messages are read. What I was expecting is that Jobs will spawn at the same time, not one after another. If I send 10 messages I was hoping for 10 Jobs to spawn at the same time.
Am I missing something ? Is the behavior I'm facing normal ? Do I correctly configure my ScaledJob ?
Here is the ScaledJob I deploy:
Many thanks for your help !! 😄
Beta Was this translation helpful? Give feedback.
All reactions