-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback is triggered without fallback.failureThreshold being taken into account #6053
Comments
Hi, is there any update on this? I can provide more details if needed. Thanks! |
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. |
Thanks for reporting, we should definitely check this. |
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. |
Hi, we're still seeing this same behavior. Can this be reopened? |
As I see it, you can end up in a fallback in two ways.
With option 1, the fallback goes off in the code of I will verify this later and test it myself. I will come back to this later. |
Report
When the scaler fails to get metric with the fallback option enabled, we expect that KEDA would scale deployment to
fallback.replica
after consecutive failures defined onfallback.failureThreshold
. But KEDA scaled deployment tofallback.replica
immediately after the scaler's first failure.This seems to be a different behavior from that described in the official documentation.
Expected Behavior
KEDA scales the target deployment to
fallback.replica
after consecutive failures defined onfallback.failureThreshold
.Actual Behavior
KEDA scales deployment to
fallback.replica
immediately after the scaler's first failure.Steps to Reproduce the Problem
fallback.failureThreshold
Number Of Failures
of the scaler.This is ScaledObject spec to reproduce the issue.
When checking HPA's desired replica, it was scaled to
fallback.replicas
immediately.Number Of Failures
was less thanfallback.failureThreshold
, which was unexpected.Logs from KEDA operator
The logs says
Successfully set ScaleTarget replicas count to ScaledObject fallback.replicas
with"New Replicas Count": 5
.KEDA Version
2.15.0
Kubernetes Version
1.29
Platform
Other
Scaler Details
Any, but I used metrics-api for testing.
Anything else?
According to scale_scaledobjects.go, it seems this behavior (= scaling to
fallback.replicas
if there is no active scalers and scaler responds with an error) is intentional. But it looks to be a different behavior from that described in the official documentation.We set a high value to
fallback.failureThreshold
to avoid triggering frequent fallbacks with temporary, short-lived failures on external metrics retrieval. But it doesn't work expectedly as described above.The text was updated successfully, but these errors were encountered: