Model class to create an autoscaling config for creating or updating a cluster. When creating
this config, min nodes, max nodes, and CPU utilization must all be set.
Get the storage utilization that the Autoscaler should be trying to achieve. This number is
limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and
16384 (16TiB) for an HDD cluster; otherwise it will return INVALID_ARGUMENT error. If this
value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD,
8192 for HDD.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Class ClusterAutoscalingConfig (2.65.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.65.0 (latest)](/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.63.0](/java/docs/reference/google-cloud-bigtable/2.63.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.62.0](/java/docs/reference/google-cloud-bigtable/2.62.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.61.0](/java/docs/reference/google-cloud-bigtable/2.61.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.60.0](/java/docs/reference/google-cloud-bigtable/2.60.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.59.0](/java/docs/reference/google-cloud-bigtable/2.59.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.58.2](/java/docs/reference/google-cloud-bigtable/2.58.2/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.56.0](/java/docs/reference/google-cloud-bigtable/2.56.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.54.0](/java/docs/reference/google-cloud-bigtable/2.54.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.52.0](/java/docs/reference/google-cloud-bigtable/2.52.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.51.2](/java/docs/reference/google-cloud-bigtable/2.51.2/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.49.0](/java/docs/reference/google-cloud-bigtable/2.49.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.46.0](/java/docs/reference/google-cloud-bigtable/2.46.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.45.1](/java/docs/reference/google-cloud-bigtable/2.45.1/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.44.1](/java/docs/reference/google-cloud-bigtable/2.44.1/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.43.0](/java/docs/reference/google-cloud-bigtable/2.43.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.42.0](/java/docs/reference/google-cloud-bigtable/2.42.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.40.0](/java/docs/reference/google-cloud-bigtable/2.40.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.39.5](/java/docs/reference/google-cloud-bigtable/2.39.5/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.37.0](/java/docs/reference/google-cloud-bigtable/2.37.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.35.1](/java/docs/reference/google-cloud-bigtable/2.35.1/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.34.0](/java/docs/reference/google-cloud-bigtable/2.34.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.33.0](/java/docs/reference/google-cloud-bigtable/2.33.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.32.0](/java/docs/reference/google-cloud-bigtable/2.32.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.31.0](/java/docs/reference/google-cloud-bigtable/2.31.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.30.0](/java/docs/reference/google-cloud-bigtable/2.30.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.29.1](/java/docs/reference/google-cloud-bigtable/2.29.1/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig)\n- [2.28.0](/java/docs/reference/google-cloud-bigtable/2.28.0/com.google.cloud.bigtable.admin.v2.models.ClusterAutoscalingConfig) \n\n public class ClusterAutoscalingConfig\n\nModel class to create an autoscaling config for creating or updating a cluster. When creating\nthis config, min nodes, max nodes, and CPU utilization must all be set. \n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e ClusterAutoscalingConfig \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### of(String instanceId, String clusterId)\n\n public static ClusterAutoscalingConfig of(String instanceId, String clusterId)\n\nMethods\n-------\n\n### equals(Object o)\n\n public boolean equals(Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getClusterId()\n\n public String getClusterId()\n\nThe cluster id to set autoscaling on\n\n### getCpuUtilizationTargetPercent()\n\n public int getCpuUtilizationTargetPercent()\n\nGet the CPU utilization that the Autoscaler should be trying to achieve. This number is on a\nscale from 0 (no utilization) to 100 (total utilization).\n\n### getInstanceId()\n\n public String getInstanceId()\n\nThe instance id of the cluster to set autoscaling on\n\n### getMaxNodes()\n\n public int getMaxNodes()\n\nGet the maximum number of nodes to scale up to.\n\n### getMinNodes()\n\n public int getMinNodes()\n\nGet the minimum number of nodes to scale down to.\n\n### getStorageUtilizationGibPerNode()\n\n public int getStorageUtilizationGibPerNode()\n\nGet the storage utilization that the Autoscaler should be trying to achieve. This number is\nlimited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and\n16384 (16TiB) for an HDD cluster; otherwise it will return INVALID_ARGUMENT error. If this\nvalue is set to 0, it will be treated as if it were set to the default value: 2560 for SSD,\n8192 for HDD.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### setCpuUtilizationTargetPercent(int cpuUtilizationTargetPercent)\n\n public ClusterAutoscalingConfig setCpuUtilizationTargetPercent(int cpuUtilizationTargetPercent)\n\nSet the CPU utilization that the Autoscaler should be trying to achieve. This number is on a\nscale from 0 (no utilization) to 100 (total utilization).\n\n### setMaxNodes(int maxNodes)\n\n public ClusterAutoscalingConfig setMaxNodes(int maxNodes)\n\nSet the maximum number of nodes to scale up to.\n\n### setMinNodes(int minNodes)\n\n public ClusterAutoscalingConfig setMinNodes(int minNodes)\n\nSet the minimum number of nodes to scale down to.\n\n### setStorageUtilizationGibPerNode(int storageUtilizationGibPerNode)\n\n public ClusterAutoscalingConfig setStorageUtilizationGibPerNode(int storageUtilizationGibPerNode)\n\n### toProto(String projectId)\n\n public PartialUpdateClusterRequest toProto(String projectId)\n\n| **Internal Only**: This feature is not stable for application use.\n\nCreates the request protobuf. This method is considered an internal implementation detail and\nnot meant to be used by applications."]]