Thousands of applications nowadays are deployed in the cloud. Both frontend and backend applications require high availability, autoscaling, and fault tolerance. Because of these strategic features, Google Cloud provides you services within Compute Engine that will allow you to deploy and manage an application through the Compute Engine VMs, that will apply to the previous features. The most important ones are Instance Template and Instance Groups. With the first one, you can create an instance template that represents all the specifics that each VM running your application needs to have (such as the OS, the disk, and network). By using the second one, you can create a group of VMs and, optionally, set up autoscaling. You will create a managed instance group. It means that all the instances inside that group need to run the same instance template.
In this lab, you will create an instance template and an instance group with the autoscaling enabled, and you will then attach an HTTP load balancer to the instance group to load balance the traffic to the VM group. You will also perform a stress test to check that the autoscaling is working properly.
Upon completion of this lab, you will be able to:
This lab is intended for:
Basic knowledge of Compute Engine is preferred but not required. You can follow these two labs related to this topic:
May 21st, 2025 - Updated lab step instructions and validation check for HTTP traffic
April 16th, 2024 - Resolved check issue
December 5th, 2023 - Addressed user ban issue and promptly added a warning
August 28th, 2023 - Updated instructions and screenshots to reflect latest UI
June 11th, 2023 - Updated instructions and screenshots to reflect latest UI
March 22nd, 2022 - Updated UI and screenshots for accuracy