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, 2019 in GCP by Karan
• 19,610 points
2,129 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, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer

Auto scaling with pre EMITABLE instances in google cloud

Hi@Jameshowardat, If you are using spot instances, then ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,460 points
705 views
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, 2019 in GCP by Sirajul
• 59,230 points
4,988 views
0 votes
1 answer
0 votes
1 answer

Check the validity of HTTPS certificates in GCP.

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

answered Oct 10, 2019 in GCP by Sirajul
• 59,230 points
1,039 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, 2019 in GCP by Sirajul
• 59,230 points
2,894 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,241 views
0 votes
1 answer

Is there any limit on the number of VPC per project in GCP?

The default limit for number of networks ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 59,230 points
6,786 views
0 votes
1 answer

Deciding on a Cloud load balancer in gcp.

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

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
916 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP