Replies: 5 comments 8 replies
-
If the current metric value is 0 while creating SO, as well it resets pods to 0 regardless cooldownPeriod or pollingInterval, just right away. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Also, are you querying metrics from the app that is a scaleTarget as well? In this case you should not scale to 0 at all, because once you do this, you lose the source of the metric. Remove the idleReplicaCount from your SO, it will scale between 1 and 5. |
Beta Was this translation helpful? Give feedback.
-
@raumx Hello. I have the same problem. When i use idleReplicaCount my deployment scaled to 0 pod.
and scale does not work.
Any idea? |
Beta Was this translation helpful? Give feedback.
-
When I try load my pods, the metrics are returned > 0. As soon as I turn off requests for pods, then the metrics are returned 0 |
Beta Was this translation helpful? Give feedback.
-
Hello, I've been stuck on this issue for several days, may be someone could help me.
I got a deployment with a Prometheus metric, querying with PromQL I get a valid value for the metric.
Next I create a SO with prometheus trigger and just right away my deployment scales down to 0.
There are no errors in keda operator logs:
I'm pretty sure the metric is accessable for HPA, manually scaling to 1 pod keda can view the metric value:
but out of a sudden in a couple of minutes it scales down to 0 again even the metric persists positive.
What am I doing wrong? I suppose it shoudn't get turned off while creating a SO object..
Beta Was this translation helpful? Give feedback.
All reactions