Class AutoscalingPolicyCpuUtilization
CPU utilization policy.
Implements
Inherited Members
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class AutoscalingPolicyCpuUtilization : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PredictiveMethod
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
Declaration
[JsonProperty("predictiveMethod")]
public virtual string PredictiveMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SignalAggregation
Defines how CPU utilization is aggregated in a group. Operates on the results from the time_aggregation,
reducing the per-instance values down to a single aggregate value across the entire instance group if
samples are available.
Declaration
[JsonProperty("signalAggregation")]
public virtual AutoscalingPolicySignalAggregation SignalAggregation { get; set; }
Property Value
| Type | Description |
|---|---|
| AutoscalingPolicySignalAggregation |
TimeAggregation
Defines how CPU utilization is aggregated over time. Operates on all CPU utilization samples produced by
each instance over the time_aggregation.time_window_sec, reducing them to exactly one value per instance
if samples are available.
Declaration
[JsonProperty("timeAggregation")]
public virtual AutoscalingPolicyTimeAggregation TimeAggregation { get; set; }
Property Value
| Type | Description |
|---|---|
| AutoscalingPolicyTimeAggregation |
UtilizationRange
Defines a target range for CPU utilization. The values of min_utilization and max_utilization must be in
the range (0.0, 1.0]. If the average CPU is between min_utilization and max_utilization, the autoscaler
maintains the current size unless another configured metric requires scaling out. If the average CPU is
above max_utilization, the autoscaler scales out until the average utilization reaches the
utilization_range.utilization_target. If the average CPU is below min_utilization, the autoscaler
considers scaling in until the average utilization reaches the utilization_range.utilization_target.
Scaling in can occur only if all other configured scaling metrics also suggest scaling in. At most one of
CpuUtilization.utilization_target or CpuUtilization.utilization_range can be set.
Declaration
[JsonProperty("utilizationRange")]
public virtual UtilizationRange UtilizationRange { get; set; }
Property Value
| Type | Description |
|---|---|
| UtilizationRange |
UtilizationTarget
The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is0.6. If the CPU level is below the target utilization, the autoscaler scales in 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 out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
Declaration
[JsonProperty("utilizationTarget")]
public virtual double? UtilizationTarget { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |