Skip to content

Conversation

@wangchen615
Copy link
Contributor

@wangchen615 wangchen615 commented Mar 1, 2021

Added the enhancement proposal for the support of a customized recommender in Vertical Pod Autoscaler.

@bskiba

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 1, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @wangchen615!

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 the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 1, 2021
Copy link
Member

@bskiba bskiba left a comment

Choose a reason for hiding this comment

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

One concern that I did not think of before and @kgolab brought it to my attention:

What do we do with VPA objects that specify a recommender that does not exist? In the current proposal they would get no recommendations, without any way to signal that to the user. Maybe we should actually produce default recommendations for them? Can you check how this is done for the custom scheduling feature? It seems they would have the same problem.

@bskiba
Copy link
Member

bskiba commented Mar 15, 2021

@jbartosik FYI

@wangchen615
Copy link
Contributor Author

@bskiba @kgolab could you review again?

@kgolab
Copy link
Collaborator

kgolab commented Apr 2, 2021

@wangchen615 , I reviewed once more. I'm fine with the latest changes - no new comments there. However my old comments still stand:

  • one is purely editorial: I think it would be useful to state how we expect the additional recommenders to be deployed
  • the other was about not closing the way towards multiple recommenders. I understand you want to keep multiple recommenders but let's not close the possibility with this change. For example: what if recommenderName was not a string but an array? We could still say that for now only one recommender is supported (e.g. we don't change status) but if we ever come to multiple recommenders, the field won't need to be changed (or rather accompanied by a new one).

Copy link
Contributor Author

@wangchen615 wangchen615 left a comment

Choose a reason for hiding this comment

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

@wangchen615 , I reviewed once more. I'm fine with the latest changes - no new comments there. However my old comments still stand:

  • one is purely editorial: I think it would be useful to state how we expect the additional recommenders to be deployed
  • the other was about not closing the way towards multiple recommenders. I understand you want to keep multiple recommenders but let's not close the possibility with this change. For example: what if recommenderName was not a string but an array? We could still say that for now only one recommender is supported (e.g. we don't change status) but if we ever come to multiple recommenders, the field won't need to be changed (or rather accompanied by a new one).

@kgolab , I added a section called deployment details according to your comments. https://github.com/wangchen615/autoscaler/blob/customizable_recommender_kep/vertical-pod-autoscaler/enhancements/3919-customized-recommender-vpa/README.md#deployment-details

Could you help take a final review?

@kgolab
Copy link
Collaborator

kgolab commented Apr 12, 2021

[...]

@kgolab , I added a section called deployment details according to your comments. https://github.com/wangchen615/autoscaler/blob/customizable_recommender_kep/vertical-pod-autoscaler/enhancements/3919-customized-recommender-vpa/README.md#deployment-details

Could you help take a final review?

Thank you, this diagram and its description clarifies a lot.

@wangchen615
Copy link
Contributor Author

@kgolab @bskiba Thanks a lot for all your comments. Is this KEP ready to be merged?

@kgolab
Copy link
Collaborator

kgolab commented Apr 14, 2021

@kgolab @bskiba Thanks a lot for all your comments. Is this KEP ready to be merged?

It looks fine from my perspective.

I'd still slightly prefer to make recommenderName an array already (and just use the first item for now) but since you marked similar comment as resolved, I guess your preference is to stay with a string field and solve the API change separately, if/when required.

Leaving to @bskiba for final approval.

@wangchen615
Copy link
Contributor Author

/assign @bskiba

Copy link
Member

@bskiba bskiba left a comment

Choose a reason for hiding this comment

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

Looks good, thanks a lot.

Last comment before LGTM is that I would like to once more to consider making recommender an array (the change Karol suggested), for which we will support only first element as part of this KEP. Otherwise, we will not be able to change that field later due to backwards incompatibility.

I can support you with adding validation for now that the array contains one item only.

One more nit: can you add white background to the image? I'm viewing github in dark mode and the image text is not visible in that setting.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 19, 2021
@bskiba
Copy link
Member

bskiba commented Apr 20, 2021

/lgtm
/approve

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 20, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bskiba, wangchen615

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

The pull request process is described 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants