-
Notifications
You must be signed in to change notification settings - Fork 102
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
Polling interval causes massive CPU use #799
Comments
Hello |
Even that, I guess that we can increase the polling interval to 15 seconds in general because the current approach is already a pushing approach because we use external-push scaler, not external. It's the scaler who actively push when it's activated, so we don't need to evaluate it every second to scale up because that's implicitly done by the external-push scaler. are you willing to contribute with the fix @jocelynthode (once they have shared their thought) ? |
Since upgrading to 0.6.0, the problem seems to have disappeared. I'll still submit a PR to align the interval to 15sec, but I'll go ahead and close this issue. |
I think that this is the real fix introduced in v0.6.0 that has reduced the CPU: 8ea0896 |
Ah interesting thanks :) |
Report
Currently the
ScaledObject
polling interval is hard coded to 1 second. This seems to cause massive CPU usage on our end.We currently have 120+
HTTPScaledObjects
meaning we have 120+ScaledObjects
.Our keda operator is hovering around 6000m of CPU Usage and the keda operator logs are littered every seconds by a lot of:
I would love as a workaround to be able to choose the pollingInterval I want, but I wonder if there could be another way to handle this issue with a push rather than pull method as increasing pollingInterval will solve CPU Usage but scaling will take longer.
Expected Behavior
I would expect http-add-on to not cause such massive CPU usage
Actual Behavior
The CPU usage increases linearly with
ScaledObjects
, needing ~6CPU for 120HTTPScaledObjects
Steps to Reproduce the Problem
HTTPScaledObjects
Logs from KEDA HTTP operator
HTTP Add-on Version
Other
Kubernetes Version
1.25
Platform
Other
Anything else?
No response
The text was updated successfully, but these errors were encountered: