public static class AutoscalingPolicyCpuUtilization.Builder extends Object
Modifier and Type | Method and Description |
---|---|
AutoscalingPolicyCpuUtilization |
build() |
AutoscalingPolicyCpuUtilization.Builder |
clone() |
Double |
getUtilizationTarget()
The target CPU utilization that the autoscaler should maintain.
|
AutoscalingPolicyCpuUtilization.Builder |
mergeFrom(AutoscalingPolicyCpuUtilization other) |
AutoscalingPolicyCpuUtilization.Builder |
setUtilizationTarget(Double utilizationTarget)
The target CPU utilization that the autoscaler should maintain.
|
public AutoscalingPolicyCpuUtilization.Builder mergeFrom(AutoscalingPolicyCpuUtilization other)
public Double getUtilizationTarget()
If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
public AutoscalingPolicyCpuUtilization.Builder setUtilizationTarget(Double utilizationTarget)
If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
public AutoscalingPolicyCpuUtilization build()
public AutoscalingPolicyCpuUtilization.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.