You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the cron trigger along with the keda http add on trigger, the deployment scales to 1 as expected during the cron interval, then immediately to 0. Used individually, the triggers work as expected.
Expected Behavior
While both triggers are active, I would expect the the deployment to be at 1 desiredReplicas, and outside the cron interval it should scale to 1 only while requests are sent to the ingress.
Actual Behavior
The deployment scales to 1 as results of the cron metric which returns 1, and then immediately scales back to 0.
Steps to Reproduce the Problem
Deploy the httpscaledobject and the scaledobject separately, and then add the cron trigger and the httpscaledobject trigger:
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.
stalebot
added
the
stale
All issues that are marked as stale due to inactivity
label
Nov 23, 2024
Report
When using the cron trigger along with the keda http add on trigger, the deployment scales to 1 as expected during the cron interval, then immediately to 0. Used individually, the triggers work as expected.
Expected Behavior
While both triggers are active, I would expect the the deployment to be at 1 desiredReplicas, and outside the cron interval it should scale to 1 only while requests are sent to the ingress.
Actual Behavior
The deployment scales to 1 as results of the cron metric which returns 1, and then immediately scales back to 0.
Steps to Reproduce the Problem
Deploy the httpscaledobject and the scaledobject separately, and then add the cron trigger and the httpscaledobject trigger:
Resulting hpa resource:
Logs from KEDA HTTP operator
2024-09-20T13:37:09Z DEBUG scaleexecutor ScaleTarget no change {"scaledobject.Name": "be-server-keda-scaling", "scaledObject.Namespace": "review-2417---be", "scaleTarget.Name": "be-server"}
2024-09-20T13:37:09Z DEBUG scale_handler Getting metrics and activity from scaler {"scaledObject.Namespace": "review-2417---be", "scaledObject.Name": "be-server-keda-scaling", "scaler": "cron_scaler", "metricName": "s0-cron-Europe-London-05xx1-5-019xx1-5", "metrics": [{"metricName":"s0-cron-Europe-London-05xx1-5-019xx1-5","metricLabels":null,"timestamp":"2024-09-20T13:37:09Z","value":"1"}], "activity": true, "scalerError": null}
2024-09-20T13:37:09Z DEBUG scale_handler Scaler for scaledObject is active {"scaledObject.Namespace": "review-2417---be", "scaledObject.Name": "be-server-keda-scaling", "scaler": "cron_scaler", "metricName": "s0-cron-Europe-London-05xx1-5-019xx1-5"}
2024-09-20T13:37:09Z DEBUG scale_handler Getting metrics and activity from scaler {"scaledObject.Namespace": "review-2417---be", "scaledObject.Name": "be-server-keda-scaling", "scaler": "requests_scaler", "metricName": "s1-http-review-2417---be_002Fbe-server-keda-scaling", "metrics": [{"metricName":"s1-http-review-2417---be_002Fbe-server-keda-scaling","metricLabels":null,"timestamp":"2024-09-20T13:37:09Z","value":"0"}], "activity": false, "scalerError": null}
2024-09-20T13:37:09Z INFO scaleexecutor Successfully updated ScaleTarget {"scaledobject.Name": "be-server-keda-scaling", "scaledObject.Namespace": "review-2417---be", "scaleTarget.Name": "be-server", "Original Replicas Count": 0, "New Replicas Count": 1}
2024-09-20T13:37:09Z DEBUG events Scaled apps/v1.Deployment review-2417---be/be-server from 0 to 1, triggered by cron_scaler {"type": "Normal", "object": {"kind":"ScaledObject","namespace":"review-2417---be","name":"be-server-keda-scaling","uid":"9fb33d6c-1325-45e0-b19d-0da46c4740ed","apiVersion":"keda.sh/v1alpha1","resourceVersion":"191451412"}, "reason": "KEDAScaleTargetActivated"}
2024-09-20T13:37:09Z INFO scaleexecutor Successfully set ScaleTarget replicas count to ScaledObject minReplicaCount {"scaledobject.Name": "be-server-keda-scaling", "scaledObject.Namespace": "review-2417---be", "scaleTarget.Name": "be-server", "Original Replicas Count": 1, "New Replicas Count": 0}
2024-09-20T13:37:09Z DEBUG events Deactivated apps/v1.Deployment review-2417---be/be-server from 1 to 0 {"type": "Normal", "object": {"kind":"ScaledObject","namespace":"review-2417---be","name":"be-server-keda-scaling","uid":"9fb33d6c-1325-45e0-b19d-0da46c4740ed","apiVersion":"keda.sh/v1alpha1","resourceVersion":"191451412"}, "reason": "KEDAScaleTargetDeactivated"}
2024-09-20T13:37:09Z DEBUG scaleexecutor ScaleTarget no change {"scaledobject.Name": "be-server-keda-scaling", "scaledObject.Namespace": "review-2417---be", "scaleTarget.Name": "be-server"}
2024-09-20T13:37:10Z DEBUG scaleexecutor ScaleTarget no change {"scaledobject.Name": "be-server-keda-scaling", "scaledObject.Namespace": "review-2417---be", "scaleTarget.Name": "be-server"}
The text was updated successfully, but these errors were encountered: