AutoscalingPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Cloud Autoscaler policy. .. attribute:: cool_down_period_sec
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.
:type: int
Attributes | |
---|---|
Name | Description |
cpu_utilization |
google.cloud.compute_v1.types.AutoscalingPolicyCpuUtilization
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. |
custom_metric_utilizations |
Sequence[google.cloud.compute_v1.types.AutoscalingPolicyCustomMetricUtilization]
Configuration parameters of autoscaling based on a custom metric. |
load_balancing_utilization |
google.cloud.compute_v1.types.AutoscalingPolicyLoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer. |
max_num_replicas |
int
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. |
min_num_replicas |
int
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. |
mode |
google.cloud.compute_v1.types.AutoscalingPolicy.Mode
Defines operating mode for this policy. |
Classes
Mode
Mode(value)
Defines operating mode for this policy.