Ability to define threshold usage percentage for Karpenter to consider nodes for consolidation when using WhenEmptyOrUnderutilized #1686
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
What problem are you trying to solve?
Since v1 I am seeing nodes that are more utilised consolidated over those less utilized, I'd like to be able to set a threshold percentage to ignore nodes that are well utilized.
Example - this node is underutilized:
This is more utilized:
The latter node is then consolidated at 10:26:
I appreciate that this is largely due to
consolidateAfter
which we have set at 20 minutes but it is also a combination of this and kube-scheduler scheduling pods to least allocated nodes (as per comment in #735 (comment)) and karpenter not having these controls to reduce disruption. In the above case I'd rather just leave it until memory and cpu requests are under 50%. Similar to how cluster autoscaler works - https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-scale-down-work, but not blended as Karpenter can provision different size nodesI see an issue #1440 which is kind of related but only for replace.
How important is this feature to you?
Important.
The text was updated successfully, but these errors were encountered: