Because of high availability and scalability, when you deploy and application in the cloud, one of the most chosen solutions is using a pool of instances. By using an instance pool, you have several servers that run the application you deployed sync with the latest version of it. One of the tasks to perform when choosing this kind of solution is to let the traffic reach the instances in the pool. You don't want to let public access to every single instance, but you should create a single endpoint from where instances can be reached. This is the main usage of a load balancer. It is a resource that allows you to create a single entry point for your resources, apply filters and then dispatch the traffic to the resources depending on a load of each one. In this lab, you will create an instance group and attach to it two Compute Engine instances that you will find in your GCP environment. Then, you will create a load balancer that will be associated with the instance group. This way, you will able to create a single entry point for your virtual machines and balance the traffic directed to them.
Upon completion of this lab you will be able to:
This lab is intended for:
This lab has no prerequisites.
February 3rd, 2023 - Updated the instructions and screenshots to reflect the latest UI
August 3rd, 2022 - Resolved deployment issue
Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.