You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,6 +28,10 @@ on all nodes the cluster, even though it does not manage the control plane nodes
29
28
Ensure that the `maxNodesTotal` value in the `ClusterAutoscaler` resource definition that you create is large enough to account for the total possible number of machines in your cluster. This value must encompass the number of control plane machines and the possible number of compute machines that you might scale to.
30
29
====
31
30
31
+
[discrete]
32
+
[id="cluster-autoscaler-scale-down_{context}"]
33
+
== Automatic node removal
34
+
32
35
Every 10 seconds, the cluster autoscaler checks which nodes are unnecessary in the cluster and removes them. The cluster autoscaler considers a node for removal if the following conditions apply:
33
36
34
37
* The node utilization is less than the _node utilization level_ threshold for the cluster. The node utilization level is the sum of the requested resources divided by the allocated resources for the node. If you do not specify a value in the `ClusterAutoscaler` custom resource, the cluster autoscaler uses a default value of `0.5`, which corresponds to 50% utilization.
@@ -47,6 +50,10 @@ If the following types of pods are present on a node, the cluster autoscaler wil
47
50
48
51
For example, you set the maximum CPU limit to 64 cores and configure the cluster autoscaler to only create machines that have 8 cores each. If your cluster starts with 30 cores, the cluster autoscaler can add up to 4 more nodes with 32 cores, for a total of 62.
49
52
53
+
[discrete]
54
+
[id="cluster-autoscaler-limitations_{context}"]
55
+
== Limitations
56
+
50
57
If you configure the cluster autoscaler, additional usage restrictions apply:
51
58
52
59
* Do not modify the nodes that are in autoscaled node groups directly. All nodes within the same node group have the same capacity and labels and run the same system pods.
@@ -55,14 +62,22 @@ If you configure the cluster autoscaler, additional usage restrictions apply:
55
62
* Confirm that your cloud provider quota is large enough to support the maximum node pools that you configure.
56
63
* Do not run additional node group autoscalers, especially the ones offered by your cloud provider.
57
64
65
+
[NOTE]
66
+
====
67
+
The cluster autoscaler only adds nodes in autoscaled node groups if doing so would result in a schedulable pod.
68
+
If the available node types cannot meet the requirements for a pod request, or if the node groups that could meet these requirements are at their maximum size, the cluster autoscaler cannot scale up.
69
+
====
70
+
71
+
[discrete]
72
+
[id="cluster-autoscaler-interaction_{context}"]
73
+
== Interaction with other scheduling features
74
+
58
75
The horizontal pod autoscaler (HPA) and the cluster autoscaler modify cluster resources in different ways. The HPA changes the deployment's or replica set's number of replicas based on the current CPU load. If the load increases, the HPA creates new replicas, regardless of the amount of resources available to the cluster. If there are not enough resources, the cluster autoscaler adds resources so that the HPA-created pods can run. If the load decreases, the HPA stops some replicas. If this action causes some nodes to be underutilized or completely empty, the cluster autoscaler deletes the unnecessary nodes.
59
76
60
77
The cluster autoscaler takes pod priorities into account. The Pod Priority and Preemption feature enables scheduling pods based on priorities if the cluster does not have enough resources, but the cluster autoscaler ensures that the cluster has resources to run all pods. To honor the intention of both features, the cluster autoscaler includes a priority cutoff function. You can use this cutoff to schedule "best-effort" pods, which do not cause the cluster autoscaler to increase resources but instead run only when spare resources are available.
61
78
62
79
Pods with priority lower than the cutoff value do not cause the cluster to scale up or prevent the cluster from scaling down. No new nodes are added to run the pods, and nodes running these pods might be deleted to free resources.
63
80
64
-
Cluster autoscaling is supported for the platforms that have machine API available on it.
65
-
66
81
////
67
82
Default priority cutoff is 0. It can be changed using `--expendable-pods-priority-cutoff` flag, but we discourage it. cluster autoscaler also doesn't trigger scale-up if an unschedulable Pod is already waiting for a lower priority Pod preemption.
0 commit comments