Google Cloud Managed Instance Groups: What You NEED to Know !!

Marco Biscardi
GO REPLY TECH
Published in
3 min readJan 3, 2023

In this video, we’re going to discuss Google Cloud Managed Instance Groups (GCP MIGs)!

Specifically, we’re going to discuss what GCP MIGs are, what they do, and what benefits they provide. We’ll also introduce you to the different types of GCP MIGs, and provide you with a guide on how to create and use GCP MIGs.

So whether you’re a beginner or an experienced GCP user, this video is for you! By the end of it, you’ll have everything you need to know about GCP MIGs. Thanks for watching!

For more information on Google Cloud Managed Instance Groups, please visit the following link: https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances

INTRO

HI!

Google Cloud Managed Instance Group component let you operate apps on multiple identical VMs.

You can make your workloads scalable and highly available by taking advantage of automated MIG services, including: autoscaling, auto-healing, regional deployment, and automatic updating.

SCENARIOS

Use a managed instance group (MIG) for scenarios like these:

  • Stateless serving workloads, such as a website frontend
  • Stateless batch, high-performance, or high-throughput compute workloads, such as image processing from a queue
  • Stateful applications, such as databases, legacy applications, and long-running batch computations with checkpointing

Compute Engine maintains each of the MIG’s managed instances based on the configuration that you specify in an instance template and optional stateful configuration. Instance templates define the machine type, boot disk image or container image, labels, startup script, and other instance properties. At the same time, A stateful MIG takes its instance configuration from a combination of the instance template, stateful policy, and per-instance configurations that you set.

UPDATE & CONFIGURE MIGs

You can also decide to apply updated instance templates and per-instance configurations to the VM instances in a MIG:

To update your application or the operating system on each instance.

To perform an A/B test to compare different versions of the same application.

To perform a canary update to minimize disruption when testing a new version.

To change other specifications for the instances in your MIG, such as the machine type or disk options.

MIGs BENEFITS

MIGs offer the following advantages:

High availability with Application-based auto-healing — which periodically verifies that your application responds as expected on each of the MIG’s instances. Regional coverage let you spread app load across multiple zones, and Load balancing to distribute traffic across all of the instances in the group.

Among the benefits also:

The Scalability — MIGs can automatically grow the number of instances in the group to meet demand.

Automated update — lets you safely deploy new versions of software to instances in your MIG supporting a flexible range of rollout scenarios

Support for stateful workloads — building highly available deployments and automating the operation of applications with stateful data or configuration

PRICING & MORE INFORMATION

There is no additional charge for using managed or unmanaged instance groups. You are charged based on the resources that your group uses.

The video down below shows you how to deploy a container to a MIG, set up an auto-healing policy, use a regional group to protect against a zonal failure, configure autoscaling to meet CPU targets and queue-based demands, and manage canary and rolling updates.

We hope you enjoyed this Google Cloud Component and see you in the next chapter of this adventure.

--

--

Marco Biscardi
GO REPLY TECH

GCP Digital Transformation Manager & Crypto Investor