KEDA does not scale to 0 #5861
Replies: 1 comment 1 reply
-
Activation (0->1) happens whenever there is any traffic. To customize this, you can specify https://keda.sh/docs/2.14/concepts/scaling-deployments/#activating-and-scaling-thresholds |
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 have a question. The configuration YAML file for the ScaledObject is the following:
I have setup up the prometheus and i get query the sample_gauge parameter. The problem is that even if the
avg(sample_counter)
is below the threshold (100) (for example theavg(sample_gauge)
is equal to 10) no scale down to zero occurs. For example, only one pod exposes the metricsample_gauge
, and describing thehpa
KEDA creates you can see:Another weird thing is that when i set the metric
sample_gauge
equal to 0 (so theavg(sample_gauge)
is equal to 0) then scale down to 0 occurs. This is super weird. The expected behavior is to scale down to zero when the metric is below the threshold.... right??I use
Kubernetes 1.27
.TIny Question: Why to use KEDA instead of the native
HPAScaleToZero
feature of Kubernetes?Beta Was this translation helpful? Give feedback.
All reactions