Dataproc Autoscaling cluster scales up but not down

Problem

The Datatroc Autoscaling policy is scaling the cluster up and not scaling it down. The logs do not have error messages, and the autoscale logs have the message: decision: NO_SCALE.

Environment

  • Cloud Dataproc Cluster with Autoscaling policy

Solution

  1. Check the Autoscaling policy.
  2. If the scaleDownFactor value is not 1, set it to 1 to aggressively scale down the cluster.

Cause

Due to graceful decommissioning, scale down operations are significantly slower than scaling up. Setting scaleDownFactor=1.0 configures aggressive scale down, which minimizes the number of down scaling operations to achieve the appropriate cluster size.