Node group autoscaling in Managed Service for Kubernetes
Autoscaling is a way of changing the size of a node group based on resource requests for pods running on this group's nodes.
How autoscaling works
When creating a node group, you specify the minimum and maximum number of nodes in the group, and the Kubernetes cluster will check the state of pods and nodes from time to time:
- If pods cannot be assigned due to a lack of resources (vCPUs or RAM) on the existing nodes, the number of nodes in the group will gradually increase to the specified maximum.
- If a workload on nodes is low, and all pods can be assigned to fewer nodes in a group, the number of nodes in the group will gradually decrease to the specified minimum.
Autoscaling features
The Kubernetes cluster-autoscaler
- If you can distribute the load in a cluster across fewer nodes, but you cannot evict pods from the nodes for some reason, the number of nodes in a group will not decrease.
- The actual number of nodes in a group may be below the minimum size of a node group. This may occur if:
- The minimum size of an autoscaling group was increased after it was created.
- The actual cluster workload does not require more nodes than the cluster currently has.
- You can place an autoscaling node group only in one availability zone.
Tip
If unexpected behavior occurs, we recommend referring to the Kubernetes cluster-autoscaler FAQ
Note
When calculating the current limits and quotas
Node group autoscaling is different from Horizontal Pod Autoscaler