-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KEP-4951: Configurable tolerance for HPA #4954
base: master
Are you sure you want to change the base?
Conversation
Welcome @jm-franc! |
Hi @jm-franc. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Looking forward to tackling a longstanding user request! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work @jm-franc, thank you!
I left some suggestions in the comments, feel free to use them or tweak them further. I skipped the sections that are needed for Beta, since we're still a ways off (even the Alpha ones may be premature).
I think we can merge the end result as-is, and then work with the sig to get it to the implementable
state.
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Add a scaling scenario. Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Specify that this feature won't increase resource usage. Co-authored-by: Patryk Prus <[email protected]>
Add version history. Co-authored-by: Patryk Prus <[email protected]>
Specify that this feature won't impact SLIs/SLOs. Co-authored-by: Patryk Prus <[email protected]>
Thank you for all those suggestions Patryk, I've merged all of them. I'm now sending this KEP for review. |
This is close to what the code coverage will be in 1.32.
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
Co-authored-by: Patryk Prus <[email protected]>
53c6e1f
to
0f848b4
Compare
/assign @gjtempleton Assigning to Guy for review/approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
||
- [ ] Events | ||
- Event Reason: | ||
- [ ] API .status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small ask - I wonder if we can emit a message in the HPA status when the tolerance level is preventing a scale up or scale down?
(looking at the code, it might be tricky to add but wonder what your thoughts are and whether it would be useful)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked it up, but I can't find any straightforward way to do this.
- We don't want to emit a message when the HPAs is just in-tolerance (that's almost always the case), but we could emit it only when the computed number of replicas is different from the current one.
- The message would still trigger frequently for metrics valued just at the boundary between 2 replicas.
- It's not clear what to do when some metrics are in tolerance while others aren't (and even if some are in-tolerance, it doesn't mean that a smaller tolerance would change the final recommendation).
This doesn't look unsolvable: we could for example compute the recommendation both normally and with tolerances set to 0, then warn users if the results are different. (But this would be a large refactoring).
If I'm missing a simpler solution I would be all in favour for this. If it's as complicated as I currently see this, I'd keep this outside of this KEP as this is only tangentially related to the problem addressed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely reasonable. Thanks for checking.
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jm-franc 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 |
/retest |
@jm-franc: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
/retest |
Add KEP-4951: Configurable tolerance for HPA
Issue link: #4951