Scaling to 0 with a CPU scaler #2736
Replies: 3 comments 7 replies
-
Scale to 0 for CPU or memory is not required because if it goes to 0, nothing is running. If nothing is running, CPU nor memory would ever go up because there is nothing running anymore. Makes sense? |
Beta Was this translation helpful? Give feedback.
-
Yeah, but a use case might arise where there are other controllers that can scale the deployment from 0 to 1 and vice versa. KEDA can scale the deployment between the specified min and max replica count based on the cpu consumption only when there's a minimum of one pod running. The HPA behaves in a similar manner, if I am not mistaken. |
Beta Was this translation helpful? Give feedback.
-
For anyone who comes across this issue, this has been made possible since Keda v2.11 |
Beta Was this translation helpful? Give feedback.
-
Hello, I'd like to ask is it at all possible to scale the target deployment to 0 replicas when using a CPU scaler? From https://keda.sh/docs/2.6/scalers/cpu/
Is this true, even when
spec.IdleReplicaCount
is set to 0? If so, could I please understand the reason behind this functionality?Beta Was this translation helpful? Give feedback.
All reactions