Set Maximum Scale Down Percentage for Virtual Node Group or Cluster (GKE) via the Console
Cloud service provider relevance: GKE
The Maximum Scale-down Percentage (maxScaleDownPercentage) is the maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific Virtual Node Group or the entire cluster.
You can apply the maxScaleDownPercentage attribute via the Ocean console at either the cluster or Virtual Node Group level. The boundaries are 0-100 %, and the default value is 10%.
Note the following:
- When you create a cluster, maxScaleDownPercentageis turned on for the cluster by default.
- When you create a Virtual Node Group, maxScaleDownPercentageis turned off by default.
- maxScaleDownPercentageis mutually exclusive. You cannot apply it simultaneously at both the cluster and Virtual Node Group levels.
Set Maximum Scale Down Percentage for a Cluster
To set the maximum scale-down percentage for a cluster:
- Click Ocean > Cloud Clusters in the left main menu.
- Select a cluster from the list of clusters.
- From the Actions drop-down menu on the top-right of the screen, click Customize Scaling.
The maximum scale-down percentage is turned on by default. Accept or change the default 10 % value and save your changes.
If you previously set the maximum scale-down percentage for a Virtual Node Group in the cluster, the Virtual Node Group value applies (not the cluster value). In addition, each Virtual Node Group for which you did not specifically set a value will use the default 10% value. In the example below, 50% was set for the cluster.
You can set maxScaleDownPercentage for a cluster from the Spot API under autoScaler > down.
Set Maximum Scaledown Percentage for a Virtual Node Group
To set the maximum scale-down percentage for a Virtual Node Group:
- Click Ocean > Cloud Clusters in the left main menu.
- Select a cluster from the list of clusters.
- In the Virtual Node Groups (VNG) tab, select the specific Virtual Node Group.
- Scroll down to the Advanced panel.
- By default, the maximum scale-down percentage is turned off. Click to turn it on. Accept or change the current value, and save your changes.
If you turn off the maximum scale-down percentage for all your Virtual Node Groups, the value set at the cluster level will apply, and you can adjust that value.
You can set maxScaleDownPercentage for a Virtual Node Group from the Spot API under launchSpec > down.