AutoscalerAutoscalingPolicyArgs

data class AutoscalerAutoscalingPolicyArgs(val cooldownPeriod: Output<Int>? = null, val cpuUtilization: Output<AutoscalerAutoscalingPolicyCpuUtilizationArgs>? = null, val loadBalancingUtilization: Output<AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs>? = null, val maxReplicas: Output<Int>, val metrics: Output<List<AutoscalerAutoscalingPolicyMetricArgs>>? = null, val minReplicas: Output<Int>, val mode: Output<String>? = null, val scaleDownControl: Output<AutoscalerAutoscalingPolicyScaleDownControlArgs>? = null, val scaleInControl: Output<AutoscalerAutoscalingPolicyScaleInControlArgs>? = null, val scalingSchedules: Output<List<AutoscalerAutoscalingPolicyScalingScheduleArgs>>? = null) : ConvertibleToJava<AutoscalerAutoscalingPolicyArgs>

Constructors

Link copied to clipboard
constructor(cooldownPeriod: Output<Int>? = null, cpuUtilization: Output<AutoscalerAutoscalingPolicyCpuUtilizationArgs>? = null, loadBalancingUtilization: Output<AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs>? = null, maxReplicas: Output<Int>, metrics: Output<List<AutoscalerAutoscalingPolicyMetricArgs>>? = null, minReplicas: Output<Int>, mode: Output<String>? = null, scaleDownControl: Output<AutoscalerAutoscalingPolicyScaleDownControlArgs>? = null, scaleInControl: Output<AutoscalerAutoscalingPolicyScaleInControlArgs>? = null, scalingSchedules: Output<List<AutoscalerAutoscalingPolicyScalingScheduleArgs>>? = null)

Properties

Link copied to clipboard
val cooldownPeriod: Output<Int>? = null

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.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard
val maxReplicas: Output<Int>

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.

Link copied to clipboard

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

Link copied to clipboard
val minReplicas: Output<Int>

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.

Link copied to clipboard
val mode: Output<String>? = null

Defines operating mode for this policy.

Link copied to clipboard

Defines scale down controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.

Link copied to clipboard

Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.

Link copied to clipboard

Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler and they can overlap. Structure is documented below.

Functions

Link copied to clipboard
open override fun toJava(): AutoscalerAutoscalingPolicyArgs