google::compute-region-autoscaler¶
Creates an region autoscaler.
Example¶
google::compute-region-autoscaler region-autoscaler-example
name: "region-autoscaler-example"
description: "Region autoscaler example"
autoscaling-policy
cool-down-period-sec: 70
max-num-replicas: 5
end
instance-group-manager: $(google::compute-region-instance-group-manager region-instance-group-manager-example)
region: "us-central1"
end
Attributes¶
Attribute | Description |
---|---|
name | Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Must be a string 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Valid values satisfy the regex: |
autoscaling-policy subresource | The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler:
If none of these are specified, the default will be to autoscale based on
|
description | A description of this resource. |
instance-group-manager resource | google::compute-region-instance-group-manager resource The managed instance group that this autoscaler will scale. (Required) |
region | The region where the autoscaler resides. (Required) |
Outputs¶
Attribute | Description |
---|---|
recommended-size | Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates recommended MIG size even when autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to the existing managed instance group or autoscaler did not generate its prediction. |
self-link | Server-defined URL for the resource. |
status | The status of the autoscaler configuration. Current set of possible values:
|
status-detail list subresource | Human-readable details about the current state of the autoscaler.
|