public class ClusterAutoscalingConfig extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClusterId()
The cluster id to set autoscaling on
|
int |
getCpuUtilizationTargetPercent()
Get the CPU utilization that the Autoscaler should be trying to achieve.
|
String |
getInstanceId()
The instance id of the cluster to set autoscaling on
|
int |
getMaxNodes()
Get the maximum number of nodes to scale up to.
|
int |
getMinNodes()
Get the minimum number of nodes to scale down to.
|
int |
hashCode() |
static ClusterAutoscalingConfig |
of(String instanceId,
String clusterId) |
ClusterAutoscalingConfig |
setCpuUtilizationTargetPercent(int cpuUtilizationTargetPercent)
Set the CPU utilization that the Autoscaler should be trying to achieve.
|
ClusterAutoscalingConfig |
setMaxNodes(int maxNodes)
Set the maximum number of nodes to scale up to.
|
ClusterAutoscalingConfig |
setMinNodes(int minNodes)
Set the minimum number of nodes to scale down to.
|
PartialUpdateClusterRequest |
toProto(String projectId)
Creates the request protobuf.
|
public static ClusterAutoscalingConfig of(@Nonnull String instanceId, @Nonnull String clusterId)
public String getClusterId()
public String getInstanceId()
public ClusterAutoscalingConfig setMinNodes(int minNodes)
public ClusterAutoscalingConfig setMaxNodes(int maxNodes)
public ClusterAutoscalingConfig setCpuUtilizationTargetPercent(int cpuUtilizationTargetPercent)
public int getMinNodes()
public int getMaxNodes()
public int getCpuUtilizationTargetPercent()
@InternalApi public PartialUpdateClusterRequest toProto(String projectId)
Copyright © 2022 Google LLC. All rights reserved.