-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Emit scale down metric even when there is no scale down candidates. #7997
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
Emit scale down metric even when there is no scale down candidates. #7997
Conversation
Hi @damikag. 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. |
Update scale scaleDownInCooldown definition to skip considering zero candidates as a reason to be in scaleDownInCooldown state
87cf274
to
49b271f
Compare
@damikag this is a significant change to the existing behavior, can you describe why we would want to make this breaking behavioral change? Normally we wouldn't make a change like this without enabling it behind a feature/config flag of some kind |
My intention is to improve the autoscaler emitting metrics when it come to scale down. At present autoscaler considers not having scale down candidates as scale down in cool down. This make us hard to know all the timestamps that autoscaler is considering scale down. This PR only adds additional metric emission when there is no scale down candidates. Apart from that,the behavior is similar to the previous case. Please correct me if I missed something @jackfrancis |
I'm not sure if this requires a feature flag, but I'd be clear in the release note what is changing:
@jackfrancis - do you see this as a breaking change? |
@x13n @damikag the fact that the existing "scale down is in cooldown" status determination includes an explicit evaluation of "scale down candidates = 0" suggests that there is a reason for that being the case. Totally reasonable to change that but I'd want to understand why it was set to that in the first place. It appears that a thread between @x13n and @vadasambar may provide a clue: |
Ah, good research, I forgot this discussion. So it looks like this was added as an flyby optimization, but:
|
After further review I'm convinced /hold for @x13n approval |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damikag, jackfrancis 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 |
/ok-to-test |
Thanks! I'm ok with the PR, so removing the hold. /hold cancel |
/cherry-pick cluster-autoscaler-release-1.32 |
@jackfrancis: new pull request created: #8105 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. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Update scale
scaleDownInCooldown
definition to skip considering zero candidates as a reason to be inscaleDownInCooldown
stateEmit scale down metric even when there is no scale down candidates.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: