How to cleanly exit Keda scaled applications #1821
Unanswered
gdippolito
asked this question in
General
Replies: 1 comment 3 replies
-
You should check |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for building this product! I really like it.
I would like to better understand what is the right way to exit applications deployed with Keda in a clean way.
I'm using the service bus scaler object and my application is a simple python script that process the messages in the queue. If there are no message in the queue the application will exit almost instantly.
I think the JobScaler does take a bit of time before scaling down the deployment. During that time the application will keep restarting and K8s will flag it as
Back-off restarting failed container
(even though the application exit with return code 0).What is the best way to avoid this behaviour (which trigger our monitoring system) ?
Do I need to add a sleep of 60 seconds to make sure that Keda has correctly scaled down the deployment?
Beta Was this translation helpful? Give feedback.
All reactions