Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Labs

Autohealing Compute Engine Workloads with Managed Instance Groups

What happens when a node fails in your Managed Instance Group (MIG)—does your configuration recover automatically, or do you get a 2 a.m. page? In this lab, you’ll build and run a resilient autohealing compute workload using Managed Instance Groups. You’ll learn how to plan recovery for common infrastructure issues. You’ll configure managed instance groups to heal themselves, then test the behavior by simulating a VM failure. Next, you’ll install the Ops Agent to collect detailed VM logs and metrics. You’ll set up Cloud Monitoring alerts so you receive notifications when usage crosses a threshold. You’ll also create MIG health checks that detect application failures and prompt the MIG to automatically replace unhealthy instances. By the end, you’ll be able to explain and apply practical resiliency and monitoring patterns that help keep services running and available.

Lab platform
Lab Info
Level
Intermediate
Last updated
May 19, 2026
Duration
30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Create an Instance Template and Managed Instance Group, based on an existing VM
    1. Verify the initial VM configuration startup completed successfully.
    2. Verify the Ops-Agent configuration is now on all VMs.
    3. Shutdown the VM and create an image that will be used by your Instance Template.
    4. Use the Instance Template you created in the previous step to create the Managed Instance Group.
  2. Challenge

    Test application configuration validation
    1. List the VM's that are part of your MIG.
    2. SSH to the first VM in the MIG.
    3. Verify the Cloud Ops agent status.
    4. Verify the python test application status.
    5. Verify the health check status is good.
  3. Challenge

    Setup your health monitoring alert and log monitoring
    1. Create your log based metric.
    2. Create your email notification channel.
    3. Create your alert policy.
    4. Apply the alert policy.
  4. Challenge

    Run the failure simulation and validate the solution
    1. Verify the VMs listed in the MIG.
    2. Trigger the failure from the Cloud Shell.
    3. Confirm your VM has become unhealty.
    4. Verify your MIG has replaces your VM and returns to a healthy status.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight