Enable auto scaling on groups of instances based on CPU utilization in GCP?

0 votes
How do I enable auto scaling on groups of instances based on CPU utilization in GCP?
Oct 18 in GCP by Karan
• 5,700 points
57 views

1 answer to this question.

0 votes

You can autoscale based on the average CPU utilization of a managed instance group (MIG). 

Using this policy tells the autoscaler to collect the CPU utilization of the instances in the group and determine whether it needs to scale. You set the target CPU utilization the autoscaler should maintain and the autoscaler works to maintain that level.

  1. Go to the Instance groups page.

  2. If you have an instance group, select it and click Edit group. If you don't have an instance group, click Create instance group.

  3. Under Autoscaling, select On.

  4. Under Autoscale based on, select CPU utilization.

  5. Enter the Target CPU utilization you want. This value is treated as a percentage. For example, for 60% CPU utilization, enter 60.

  6. Provide a number for the maximum number of instances that you want in this instance group. You can also set the minimum number of instances and the cool down period. The cool down period is the number of seconds the autoscaler should wait after a VM has started before the autoscaler starts collecting information from it. This accounts for the amount of time it can take for a VM to initialize, during which the collected data is not reliable for autoscaling. The default cool down period is 60 seconds.

  7. Save your changes.

answered Oct 18 by Sirajul
• 38,420 points

Related Questions In GCP

0 votes
1 answer

How to allow outbound traffic on a custom port in gcp?

To allow outbound traffic through a custom ...READ MORE

answered Sep 26 in GCP by Sirajul
• 38,420 points
34 views
0 votes
1 answer

Check the validity of HTTPS certificates in GCP.

Taking a look on the current documentation ...READ MORE

answered Oct 10 in GCP by Sirajul
• 38,420 points
18 views
0 votes
1 answer

What's the payload limit of HTTP load balancer in GCP?

Google Fronted process all request created to any Google product/service. GFE is that ...READ MORE

answered Oct 11 in GCP by Sirajul
• 38,420 points
22 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 38,420 points
38 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 38,420 points
47 views
0 votes
1 answer
0 votes
1 answer

Deciding on a Cloud load balancer in gcp.

Google Cloud Platform Load Balancing enables you ...READ MORE

answered Sep 26 in GCP by Sirajul
• 38,420 points
31 views