From 4edc3bf9daab5a930929258e7f4ccfce0a4f3225 Mon Sep 17 00:00:00 2001 From: Laiba Zaman Date: Mon, 13 Mar 2023 13:47:30 +0000 Subject: [PATCH 1/2] added remidiation guide --- ...utoscale-minimum-cpu-utilization-target.md | 22 +++++++++++++++++++ .../compute/instance-maintenance-behavior.md | 6 ++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 en/google/compute/autoscale-minimum-cpu-utilization-target.md diff --git a/en/google/compute/autoscale-minimum-cpu-utilization-target.md b/en/google/compute/autoscale-minimum-cpu-utilization-target.md new file mode 100644 index 000000000..659d5e4f2 --- /dev/null +++ b/en/google/compute/autoscale-minimum-cpu-utilization-target.md @@ -0,0 +1,22 @@ +1. In the console, go to the Instance groups page. + + [Go to Instance groups](https://console.cloud.google.com/compute/instanceGroups) + +2. If you have an instance group, select it and click Edit. If you don't have an instance group, click Create instance group. + +3. If no autoscaling configuration exists, under Autoscaling, click Configure autoscaling. + +4. Under Autoscaling mode, select On: add and remove instances to the group to enable autoscaling. + +5. Specify the minimum and maximum numbers of instances that you want the autoscaler to create in this group. + +6. In the Autoscaling metrics section, if an existing CPU utilization metric does not yet exist, add one: + + a. Click Add metric. + b. Under Metric type, select CPU utilization. + c. Enter the Target CPU utilization that you want. This value is treated as a percentage. For example, for 75% CPU utilization, enter `75`. + d. Under Predictive autoscaling, select Off. To learn more about predictive autoscaling, and whether it is suitable for your workload, see [Scaling based on predictions](https://cloud.google.com/compute/docs/autoscaler/predictive-autoscaling). + e. Click Done. +7. You can use the Cool down period to tell the autoscaler how long it takes for your application to initialize. Specifying an accurate cool down period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default cool down period is 60 seconds. + +8. Click Save. \ No newline at end of file diff --git a/en/google/compute/instance-maintenance-behavior.md b/en/google/compute/instance-maintenance-behavior.md index b129a0dba..1450b3600 100644 --- a/en/google/compute/instance-maintenance-behavior.md +++ b/en/google/compute/instance-maintenance-behavior.md @@ -23,6 +23,6 @@ 3. On the VM details page, complete the following steps: - 1. Click the Edit button at the top of the page. - 2. Under Availability policies, update the policy as needed. From the Availability policies section, you can set the On host maintenance and Automatic restart options. - 3. Click Save. \ No newline at end of file + a. Click the Edit button at the top of the page. + b. Under Availability policies, update the policy as needed. From the Availability policies section, you can set the On host maintenance and Automatic restart options. + c. Click Save. \ No newline at end of file From 33f7040daf7d316d1e43cde5c42fd37f7fa6c0f1 Mon Sep 17 00:00:00 2001 From: Laiba Zaman Date: Wed, 15 Mar 2023 13:44:29 +0000 Subject: [PATCH 2/2] added requested changes --- .../autoscale-minimum-cpu-utilization-target.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/en/google/compute/autoscale-minimum-cpu-utilization-target.md b/en/google/compute/autoscale-minimum-cpu-utilization-target.md index 659d5e4f2..9a0567ecc 100644 --- a/en/google/compute/autoscale-minimum-cpu-utilization-target.md +++ b/en/google/compute/autoscale-minimum-cpu-utilization-target.md @@ -1,3 +1,20 @@ +[![CloudSploit](https://cloudsploit.com/img/logo-new-big-text-100.png "CloudSploit")](https://cloudsploit.com) + +# GOOGLE / Compute / Autoscale Minimum CPU Utilization Target + +## Quick Info + +| | | +|-|-| +| **Plugin Title** | Autoscale Minimum CPU Utilization Target | +| **Cloud** | GOOGLE | +| **Category** | Compute | +| **Description** | Ensure that minimum CPU utilization target is greater or equal than set percentage. | +| **More Info** | The autoscaler treats the target CPU utilization level as a fraction of the average use of all vCPUs over time in the instance group. If the average utilization of your total vCPUs exceeds the target utilization, the autoscaler adds more VM instances. If the average utilization of your total vCPUs is less than the target utilization, the autoscaler removes instances. | +| **GOOGLE Link** | https://cloud.google.com/compute/docs/autoscaler/scaling-cpu | +| **Recommended Action** | Ensure all instance groups have Minimum CPU Utilization greater than or equal to target value. | + +## Detailed Remediation Steps 1. In the console, go to the Instance groups page. [Go to Instance groups](https://console.cloud.google.com/compute/instanceGroups)