Class AutoscalingPolicy
Inheritance
AutoscalingPolicy
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class AutoscalingPolicy : IDirectResponseSchema
Properties
CoolDownPeriodSec
The number of seconds that your application takes to initialize on a VM instance. This is referred to as the
initialization period. Specifying an accurate initialization
period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs
that are still initializing because those VMs might not yet represent normal usage of your application. The
default initialization period is 60 seconds. Initialization periods might vary because of numerous factors.
We recommend that you test how long your application takes to initialize. To do this, create a VM and time
your application's startup process.
Declaration
[JsonProperty("coolDownPeriodSec")]
public virtual int? CoolDownPeriodSec { get; set; }
Property Value
CpuUtilization
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization
of a managed instance group.
Declaration
[JsonProperty("cpuUtilization")]
public virtual AutoscalingPolicyCpuUtilization CpuUtilization { get; set; }
Property Value
CustomMetricUtilizations
Configuration parameters of autoscaling based on a custom metric.
Declaration
[JsonProperty("customMetricUtilizations")]
public virtual IList<AutoscalingPolicyCustomMetricUtilization> CustomMetricUtilizations { get; set; }
Property Value
ETag
Declaration
public virtual string ETag { get; set; }
Property Value
LoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer.
Declaration
[JsonProperty("loadBalancingUtilization")]
public virtual AutoscalingPolicyLoadBalancingUtilization LoadBalancingUtilization { get; set; }
Property Value
MaxNumReplicas
The maximum number of instances that the autoscaler can scale out to. This is required when creating or
updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
Declaration
[JsonProperty("maxNumReplicas")]
public virtual int? MaxNumReplicas { get; set; }
Property Value
MinNumReplicas
The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not
provided, autoscaler chooses a default value depending on maximum number of instances allowed.
Declaration
[JsonProperty("minNumReplicas")]
public virtual int? MinNumReplicas { get; set; }
Property Value
Mode
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the
autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances
only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning
off or restricting an autoscaler"
Declaration
[JsonProperty("mode")]
public virtual string Mode { get; set; }
Property Value
ScaleDownControl
Declaration
[JsonProperty("scaleDownControl")]
public virtual AutoscalingPolicyScaleDownControl ScaleDownControl { get; set; }
Property Value
ScaleInControl
Declaration
[JsonProperty("scaleInControl")]
public virtual AutoscalingPolicyScaleInControl ScaleInControl { get; set; }
Property Value
ScalingSchedules
Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can
overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied.
Up to 128 scaling schedules are allowed.
Declaration
[JsonProperty("scalingSchedules")]
public virtual IDictionary<string, AutoscalingPolicyScalingSchedule> ScalingSchedules { get; set; }
Property Value
Implements