-
Overview
- The node group autoscaler automatically manages the sizes of sole-tenant node groups by increasing the size of a node group when there is insufficient capacity for another virtual machine (VM) instance on that node group
- After the autoscaler increases the size of the node group, the VMs are scheduled transparently
- Decreasing the size of a node group when there are empty nodes, avoids paying for unused sole-tenant nodes
-
Modes
- By default, the autoscaler is not enabled on node groups
- When the autoscaler is not enabled, users must manually manage the sizes of node groups
- When enabling autoscaler on a node group, users can specify that the autoscaler both increases and decreases the size of the node group (scales out and scales in), or that it only increases the size of the group (only scales out)
- In the scale out and scale in mode, the node group autoscaler both increases (scales out) and decreases (scales in) the size of node groups
- For this mode, specify a maximum size and a minimum size for the node group
- The autoscaler will not scale the size of the node group above the specified maximum or below the specified minimum
- The autoscaler scales out the size of a node group when there is a request to schedule a VM onto a node group that does not have capacity for another VM
- Conversely, the autoscaler scales in the size of a node group when there is an empty node in the node group
- With the only scale out mode, the autoscaler increases the size of the node group in response to requests to schedule VMs, but doesn't remove empty nodes from node groups
- Google recommends this mode for monotonically increasing workloads or workloads that require physical server affinity, such as BYOL workloads, which require licenses to reside on the same physical server
- Use the only scale out mode if node groups are configured to restart hosted VMs on minimal servers
-
Size
- When the autoscaler is enabled, set the size range of the node group by specifying a minimum and maximum value for the node group size
- If a value for the minimum size is not specified, the autoscaler sets the minimum size to zero (0)
- The value for the minimum size must be an integer greater than equal to 0, and it must be less than or equal to the maximum size
- A value for the maximum size of the node group must be specified
- The value must be an integer that is greater than or equal to 0 and less than or equal to 100, which is the maximum allowed size for a sole-tenant node group, and the value must be greater than or equal to the specified minimum value
- To accommodate workloads that might exceed the size maximum of 100 for a node group, create multiple node groups with matching affinity labels
- Then, schedule VMs using the affinity label, and enable autoscaling on each group to create a dynamically scaling group of node groups