Send feedback
Class ClusterAutoscalingConfig (2.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.7.0 keyboard_arrow_down
public class ClusterAutoscalingConfig
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.
Inheritance
Object >
ClusterAutoscalingConfig
Static Methods
of(String instanceId, String clusterId)
public static ClusterAutoscalingConfig of ( String instanceId , String clusterId )
Parameters
Returns
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Returns
Overrides
getClusterId()
public String getClusterId ()
The cluster id to set autoscaling on
Returns
getCpuUtilizationTargetPercent()
public int getCpuUtilizationTargetPercent ()
Get the CPU utilization that the Autoscaler should be trying to achieve. This number is on a
scale from 0 (no utilization) to 100 (total utilization).
Returns
getInstanceId()
public String getInstanceId ()
The instance id of the cluster to set autoscaling on
Returns
getMaxNodes()
Get the maximum number of nodes to scale up to.
Returns
getMinNodes()
Get the minimum number of nodes to scale down to.
Returns
hashCode()
Returns
Overrides
setCpuUtilizationTargetPercent(int cpuUtilizationTargetPercent)
public ClusterAutoscalingConfig setCpuUtilizationTargetPercent ( int cpuUtilizationTargetPercent )
Set the CPU utilization that the Autoscaler should be trying to achieve. This number is on a
scale from 0 (no utilization) to 100 (total utilization).
Parameter
Name Description cpuUtilizationTargetPercent int
Returns
setMaxNodes(int maxNodes)
public ClusterAutoscalingConfig setMaxNodes ( int maxNodes )
Set the maximum number of nodes to scale up to.
Parameter
Name Description maxNodes int
Returns
setMinNodes(int minNodes)
public ClusterAutoscalingConfig setMinNodes ( int minNodes )
Set the minimum number of nodes to scale down to.
Parameter
Name Description minNodes int
Returns
toProto(String projectId)
public PartialUpdateClusterRequest toProto ( String projectId )
Creates the request protobuf. This method is considered an internal implementation detail and
not meant to be used by applications.
Parameter
Name Description projectId String
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-05 UTC.
Need to tell us more?
[[["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 2024-12-05 UTC."],[],[]]