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

Decrease first bucket size #6446

Closed
wants to merge 1 commit into from

Conversation

dmitrii-sisutech
Copy link

What type of PR is this?

/kind feature

What this PR does / why we need it:

Decreased first bucket size, so min recommended target is decreased as well and can go now under 10m.

Which issue(s) this PR fixes:

Fixes #6415

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 11, 2024
Copy link

linux-foundation-easycla bot commented Jan 11, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dmitrii-sisutech / name: Dmitrii Bobrovskii (1150875)

@k8s-ci-robot k8s-ci-robot requested a review from krzysied January 11, 2024 10:10
@k8s-ci-robot k8s-ci-robot added area/vertical-pod-autoscaler cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 11, 2024
@k8s-ci-robot k8s-ci-robot requested a review from voelzmo January 11, 2024 10:10
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dmitrii-sisutech
Once this PR has been reviewed and has the lgtm label, please assign krzysied for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

Welcome @dmitrii-sisutech!

It looks like this is your first PR to kubernetes/autoscaler 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/autoscaler has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 11, 2024
@voelzmo
Copy link
Contributor

voelzmo commented Jan 15, 2024

Hey @dmitrii-sisutech thanks for immediately jumping to do the PR fort that issue! Unfortunately, it isn't this simple, as the line right above your change hints at

When parameters below are changed SupportedCheckpointVersion has to be bumped.

We cannot simply change the buckets of the Checkpoints, as they get written to VPA objects and the recommender reads them when restarting. I didn't do an update of the CheckpointVersion before, but I'll try to find people with more experience on that topic today. We will hopefully be able to get a more comprehensive list of the necessary steps.

@voelzmo
Copy link
Contributor

voelzmo commented Feb 12, 2024

ping @mwielgus: we talked about this in the SIG meeting and you wanted to provide some context on reducing the minimum recommendation size for VPA.

@mwielgus
Copy link
Contributor

This is a potentially breaking change - updating VPA may require cleaning the whole cluster history as the buckets will be different. If this is really needed, this should be behind a flag, with the old value as the default and a warning about consequences of changing it.

@dmitrii-sisutech
Copy link
Author

dmitrii-sisutech commented Mar 22, 2024

Thanks @mwielgus for the details.
I'm working at the moment on something different and for now we solved the problem by creating our own image of VPA recommender. I'll get back to that PR with proper solution probably somewhere in summer.

@mwielgus
Copy link
Contributor

Ok, closing this one for now. Feel free to reopen once needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VPA recommender doesn't recommend CPU requests below 10m
4 participants