Open JuniorJPDJ opened 1 month ago
This is similar or duplicate to #5620 which is closed due to inactivity
This issue is very difficult to solve with the current implementation of CPU scaler. The biggest problem is that resource-metrics based scalers (like CPU and memory) do not have activationThreshold
field which is crucial for determining whether the deployment should be scaled to zero or not.
Report
On time XX:33 it starts, when cpu is being used it scales up, but then even if more than 1 replicas are here on XX:55 its just scaling it all down to 0 replicas.
The ScaledObject:
Expected Behavior
After reading this: https://keda.sh/docs/2.13/reference/faq/#using-multiple-triggers-for-the-same-scale-target It seems like the deployment shouldn't scale down until the CPU trigger is keeping it up. It should only downscale to 0 when there is low CPU usage and we are not inside timeframe defined for cron trigger.
Actual Behavior
After timeframe of cron trigger is over, instantly deployment scales down to 0.
Steps to Reproduce the Problem
Logs from KEDA operator
No response
KEDA Version
2.13.1
Kubernetes Version
1.29
Platform
Amazon Web Services
Scaler Details
cpu, cron
Anything else?
No response