Autoscaler

The autoscaler adds and removes worker servers based on the workload of the cluster.

It scales up when Pods cannot be scheduled, and scales down when the workload decreases. The minimum and maximum values define the lower and upper limits of the server count. For example, with a minimum of 3 and a maximum of 10, the cluster can scale up to 5 servers when the load increases, and scale back to no fewer than 3 servers when the load decreases.

You can also turn on the autoscaler when you create the project, in the Enable Autoscaler For This Project section. The autoscaler behaves as follows:

  • If the autoscaler detects a server in a failed state, it stops and waits until the issue is resolved.
  • If a deployment fails, for example because a quota limit is exceeded, the autoscaler waits and retries the deployment for up to 3 hours.
  • After a server is no longer needed, the autoscaler waits 5 to 10 minutes before it removes the server.
  • If the autoscaler does not scale down, check the Pods. If Pods use EmptyDir volumes, add the following annotation to the Pods so that the autoscaler can remove the server safely: "cluster-autoscaler.kubernetes.io/safe-to-evict": "true"

The autoscaler group is named taikunca. The value taikunca is a fixed identifier that the product uses. If you used the autoscaler in a previous version, turn it off and on again so that the new configuration applies.

To see what the autoscaler is doing, such as scaling up, scaling down, or waiting, check its logs with the following command:

stern cluster_autoscaler -n kube-system