Show / Hide Table of Contents

Class AutoscalerAutoscalingPolicy

Inheritance
System.Object
AutoscalerAutoscalingPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute.Outputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class AutoscalerAutoscalingPolicy

Fields

View Source

CooldownPeriod

The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.

Declaration
public readonly int? CooldownPeriod
Field Value
Type Description
System.Nullable<System.Int32>
View Source

CpuUtilization

Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. Structure is documented below.

Declaration
public readonly AutoscalerAutoscalingPolicyCpuUtilization CpuUtilization
Field Value
Type Description
AutoscalerAutoscalingPolicyCpuUtilization
View Source

LoadBalancingUtilization

Configuration parameters of autoscaling based on a load balancer. Structure is documented below.

Declaration
public readonly AutoscalerAutoscalingPolicyLoadBalancingUtilization LoadBalancingUtilization
Field Value
Type Description
AutoscalerAutoscalingPolicyLoadBalancingUtilization
View Source

MaxReplicas

The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.

Declaration
public readonly int MaxReplicas
Field Value
Type Description
System.Int32
View Source

Metrics

Configuration parameters of autoscaling based on a custom metric. Structure is documented below.

Declaration
public readonly ImmutableArray<AutoscalerAutoscalingPolicyMetric> Metrics
Field Value
Type Description
System.Collections.Immutable.ImmutableArray<AutoscalerAutoscalingPolicyMetric>
View Source

MinReplicas

The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.

Declaration
public readonly int MinReplicas
Field Value
Type Description
System.Int32
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.