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

[Autoscaling] Add CPU recommender #5924

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

barkbay
Copy link
Contributor

@barkbay barkbay commented Aug 3, 2022

This PR adds a CPU recommender to the Autoscaling controller.

Fixes #5823

@barkbay barkbay added >enhancement Enhancement of existing functionality autoscaling v2.5.0 labels Aug 3, 2022
@pebrc pebrc self-assigned this Aug 10, 2022
Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! 👍

In my testing, I think at least, I was not able to observe CPU based autoscaling but that might be due to the simulated load I was using that required more storage more than anything else.
One thing I noticed is that the ML autoscaling I had in place went a bit crazy and requested 9 ML nodes with 8 CPU each only to scale them down later (without me having created any ML models) I could not find a flaw in you implementation though and think this is purely due to the decision Elasticsearch made.

Copy link
Contributor

@thbkrkr thbkrkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test in real but code LGTM.
Left some nitpicking on wording.

@barkbay barkbay merged commit a913c91 into elastic:main Aug 12, 2022
@barkbay barkbay deleted the autoscaling/processors branch August 12, 2022 14:52
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
This commit adds a CPU recommender to update the required Pods CPU according to the "processors" field in the Elasticsearch autoscaling capacity response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoscaling >enhancement Enhancement of existing functionality v2.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autoscaling based on processors
3 participants