Skip to content
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

Allow configuration of target CPU Utilization for HPA #1065

Closed
moh-osman3 opened this issue Aug 30, 2022 · 5 comments
Closed

Allow configuration of target CPU Utilization for HPA #1065

moh-osman3 opened this issue Aug 30, 2022 · 5 comments
Labels
area:collector Issues for deploying collector

Comments

@moh-osman3
Copy link
Contributor

Currently the HPA code hard codes 90% as the target cpu utilization. I am currently running tests with HPA and it would be helpful to be able to change the target utilization to a custom value. Opening this issue to track my change to add this field to the collector config.

@pavolloffay
Copy link
Member

cc) @kevinearls

@ajsaclayan
Copy link

Can I piggy back off this request to scale on memory as well? Otherwise I can create a new issue.

@pavolloffay
Copy link
Member

@moh-osman3 could you please as well comment why do you need a custom value fo HPA? What is the use-case?

@moh-osman3
Copy link
Contributor Author

@pavolloffay The purpose of adding TargetCPUUtilization to the CRD is because we wish to tune this value and provide a recommended setting to users. Previously with 90% we are experiencing a lot of flapping when load testing. If targets are uneven and one of the collectors has significantly fewer targets than other collectors, it becomes less likely that scale up will happen (average utilization will be too low, this can lead to throttling in collectors with too many targets which can cause scaling down). Giving users the control over this value might allow them to tune the HPA to their specific needs, if the default is unhelpful.

Previously talked with @jaronoff97 about adding the option to scale on memory for workloads with fluctuating memory needs. I can work on that in a followup PR in the next few weeks, if you don't mind creating an issue for this @ajsaclayan and specifying the use case?

@moh-osman3
Copy link
Contributor Author

Resolved by #1066

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:collector Issues for deploying collector
Projects
None yet
Development

No branches or pull requests

3 participants