AutoscalingPolicyArgs

data class AutoscalingPolicyArgs(val coolDownPeriodSec: Output<Int>? = null, val cpuUtilization: Output<AutoscalingPolicyCpuUtilizationArgs>? = null, val customMetricUtilizations: Output<List<AutoscalingPolicyCustomMetricUtilizationArgs>>? = null, val loadBalancingUtilization: Output<AutoscalingPolicyLoadBalancingUtilizationArgs>? = null, val maxNumReplicas: Output<Int>? = null, val minNumReplicas: Output<Int>? = null, val mode: Output<AutoscalingPolicyMode>? = null, val scaleDownControl: Output<AutoscalingPolicyScaleDownControlArgs>? = null, val scaleInControl: Output<AutoscalingPolicyScaleInControlArgs>? = null, val scalingSchedules: Output<Map<String, String>>? = null) : ConvertibleToJava<AutoscalingPolicyArgs>

Cloud Autoscaler policy.

Constructors

Link copied to clipboard
fun AutoscalingPolicyArgs(coolDownPeriodSec: Output<Int>? = null, cpuUtilization: Output<AutoscalingPolicyCpuUtilizationArgs>? = null, customMetricUtilizations: Output<List<AutoscalingPolicyCustomMetricUtilizationArgs>>? = null, loadBalancingUtilization: Output<AutoscalingPolicyLoadBalancingUtilizationArgs>? = null, maxNumReplicas: Output<Int>? = null, minNumReplicas: Output<Int>? = null, mode: Output<AutoscalingPolicyMode>? = null, scaleDownControl: Output<AutoscalingPolicyScaleDownControlArgs>? = null, scaleInControl: Output<AutoscalingPolicyScaleInControlArgs>? = null, scalingSchedules: Output<Map<String, String>>? = null)

Functions

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

Properties

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

The number of seconds that the autoscaler waits 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.

Link copied to clipboard

Configuration parameters of autoscaling based on a custom metric.

Link copied to clipboard

Configuration parameters of autoscaling based on load balancer.

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

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.

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

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.

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

Defines operating mode for this policy.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scalingSchedules: Output<Map<String, String>>? = null

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.