Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Labs

Launching a Managed Instance Group in Compute Engine

In this lab, you will learn how to create an instance template and customize it to your needs, create a managed instance group that uses the instance template, and learn how to stress test your instances to make sure your configuration works!

Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Sep 30, 2022

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an Instance Template

    1. In the Google Cloud console, go to the Compute Engine and then go to Instance templates

           Click Create instance template.
      
    2. Name your Instance Template

    3. Under Machine Type choose e2-micro

    4. Under Firewall allow HTTP and HTTPS

    5. Click Create

  2. Challenge

    Create a Managed Instance Group

    For Health Check:

    1. In the Google Cloud console, go to the Health Check page.
    2. Click Create Health Check.
    3. Give the health check a name, Regional Scope, TCP protocol, port 80.
    4. Click Create.

    For Creating the Instance Group:

    1. In the Google Cloud console, go to the Instance groups page.
    2. Click Create instance group.
    3. Under Instance template, select the instance template you created.
    4. Under Location, choose Single Zone US-Central1 for region, and US-Central1-A for zone.
    5. For Autoscaling, choose On: add and remove instances to the group with a min of 1 and a max of 3, and CPU Untilization at 60%.
    6. For Health Check, choose the health check you've created.
    7. Click Create.
  3. Challenge

    Test and Stress the Managed Instance Group

    1. Select the instance and choose SSH.
    2. Use command sudo apt-get install stress and then sudo stress --cpu 2 --timeout 500 to stress your instance.
    3. After eight minutes, you should see your instance scale to maximum capacity of three instances.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans