Closed lantingchiang closed 2 days ago
Does this repro in a recent version?
https://keda.sh/docs/2.15/concepts/scaling-deployments/#activating-and-scaling-thresholds
Does this repro in a recent version?
https://keda.sh/docs/2.15/concepts/scaling-deployments/#activating-and-scaling-thresholds
💯
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to inactivity.
Report
We have a scaler with minReplicaCount > 0 and activationThreshold unset. Based on https://keda.sh/docs/2.8/concepts/scaling-deployments/#managing-activation--scaling-thresholds,
We expect our scaler to be always active and scaling to be handled by the HPA controller (i.e. we're not utilizing the 0 <-> 1 scaling provided by keda-operator). However, we're seeing our scaled objects showing inactive status like so:
We have verified that the query is correct and returns metrics with a cardinality of one, and that the scaledobject isn't exhibiting any errors.
Scaled Object spec:
Keda version: 2.8 K8s version: 1.22.17
Expected Behavior
Since we set minReplicaCount >= 1 and do not set activationThreshold (which defaults to 0), we expect the condition to always show that the scaledobject is active.
Actual Behavior
We saw that the scaledobject is showing condition inactive:
We've seen this both when the metric value returned by the query is 0 and when the metric value returned by the query is > 0.
Steps to Reproduce the Problem
Uncertain
Logs from KEDA operator
No response
KEDA Version
< 2.11.0
Kubernetes Version
< 1.28
Platform
Amazon Web Services
Scaler Details
Prometheus
Anything else?
No response