How to prevent scale to 0 during RollingUpdates #7252
Unanswered
jamesoneill997
asked this question in
Q&A / Need Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Relatively inxperienced with Keda, so my apologies if this is a bit of a noob question.
We use keda for scaling within pipelines and one thing that I'm a bit puzzled on is how to handle scaling during rollingUpdates. I wish to allow replicas to scale to 0 if there is no volume, however, I believe that setting minReplicas: 0 will also mean that during a rollingUpdate of pods within the pipeline, replicas will be allowed to scale to 0, which is not something that I want.
For pods within the pipeline, we are using an updateStrategy like so:
However, I'm not sure whether this is relevant when scaling via Keda, as it seems like the Keda scaler config below would take precedence:
If minReplicaCount is >=1, then this is fine. But in some cases, I will want to allow an environment to scale down to 0, and the behaviour that I have noticed is that in environments where we allow scale to 0, they seem to break if a configuration change is applied while traffic is being processed.
So, is it possible to allow scale to 0 but also change the behaviour on rollingUpdate? From a look through the docs, I don't think that it is.
Apologies again if I've missed something here. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions