From 88ba14924edd895603ec269fbf1ff16daec33cac Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 24 Feb 2021 12:02:42 -0800 Subject: [PATCH] Add support for google_compute_autoscaler autoscalingPolicy.cpuUtilization.predictiveMethod (#4523) (#8547) Co-authored-by: upodroid Signed-off-by: Modular Magician Co-authored-by: upodroid --- .changelog/4523.txt | 3 +++ website/docs/r/compute_autoscaler.html.markdown | 6 ++++++ website/docs/r/compute_region_autoscaler.html.markdown | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 .changelog/4523.txt diff --git a/.changelog/4523.txt b/.changelog/4523.txt new file mode 100644 index 00000000000..551115e82c5 --- /dev/null +++ b/.changelog/4523.txt @@ -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` +``` diff --git a/website/docs/r/compute_autoscaler.html.markdown b/website/docs/r/compute_autoscaler.html.markdown index 666e892a7c9..f4d3bf6f558 100644 --- a/website/docs/r/compute_autoscaler.html.markdown +++ b/website/docs/r/compute_autoscaler.html.markdown @@ -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` - diff --git a/website/docs/r/compute_region_autoscaler.html.markdown b/website/docs/r/compute_region_autoscaler.html.markdown index e300b9f61f5..f7c5d52fd0a 100644 --- a/website/docs/r/compute_region_autoscaler.html.markdown +++ b/website/docs/r/compute_region_autoscaler.html.markdown @@ -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` -