Skip to content

Commit

Permalink
Add support for google_compute_autoscaler autoscalingPolicy.cpuUtiliz…
Browse files Browse the repository at this point in the history
…ation.predictiveMethod (#4523) (#8547)

Co-authored-by: upodroid <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: upodroid <[email protected]>
  • Loading branch information
modular-magician and upodroid authored Feb 24, 2021
1 parent 161e3a0 commit 88ba149
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/4523.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
compute: added autoscaling_policy.cpu_utilization.predictive_method field to `google_compute_autoscaler` and `google_compute_region_autoscaler`
```
6 changes: 6 additions & 0 deletions website/docs/r/compute_autoscaler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ The `cpu_utilization` block supports:
specified or until the average utilization reaches the target
utilization.

* `predictive_method` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:
- NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics.
- OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.

The `metric` block supports:

* `name` -
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/compute_region_autoscaler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ The `cpu_utilization` block supports:
specified or until the average utilization reaches the target
utilization.

* `predictive_method` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:
- NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics.
- OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.

The `metric` block supports:

* `name` -
Expand Down

0 comments on commit 88ba149

Please sign in to comment.