-
Notifications
You must be signed in to change notification settings - Fork 4k
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
add the ability to ignore min-count for long unregistered nodes #6360
Comments
/assign Bryce-Soghigian |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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. |
Which component are you using?: Cluster Autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
Describe the solution you'd like.:
Problem Statement and Proposed Solution
Issue with Unregistered Nodes in Cluster Autoscaler
When using Cluster Autoscaler, nodes may sometimes fail to register successfully with the APIServer. The expected behavior today is that we just will skip deletion of these nodes if they violate min count. In such scenarios, the Cluster Autoscaler skips the deletion of these unresponsive or unregistered nodes. This leads to a significant problem: nodes that fail due to configuration or networking issues remain in the cluster indefinitely. Consequently, customers incur costs for these unusable nodes. The min count will be filled with broken nodes.
The current logic in the Cluster Autoscaler is as follows:
This implementation results in the following issue:
Suggested Solution: Ignoring Min Count for Long-Unregistered Nodes
To address this, the proposed solution involves modifying the behavior of the autoscaler to allow the deletion of long-unregistered nodes, even if it means violating the minimum node count. This approach aims to prevent the accumulation of unusable and costly nodes in the cluster.
Implementation of the Solution: Feature Flag
The introduction of this behavior can be controlled through a feature flag, allowing a cautious and reversible implementation. The flag would be as follows:
By default, this flag will be set to false. This ensures that the existing behavior is maintained unless explicitly overridden. After a period of observation and validation to confirm that this new approach does not introduce any significant long-term problems, the flag could be removed, making this behavior the standard operational mode of the autoscaler.
Additional context.:
We would like to change our autoscaler to ignore min count for these nodes, in the case that there is some problem in scale up that would leave around unused VMs that we still have to pay for.
The text was updated successfully, but these errors were encountered: