Create a MIG with stateful disks

This document describes how to create a managed instance group (MIG) that preserves the data on disks with a given device name for all of the MIG's VMs, even in the event of VM recreation—for example when a VM in the MIG is autohealed, updated, or recreated. Preserving disks is useful for certain workloads—for example, for databases or legacy applications.

In addition to preserving disks for all VMs in the group, you can also configure a stateful MIG for the following:

For more information, see the stateful MIG overview.

You can also read about other basic scenarios for creating a MIG.

Before you begin

Limitations

A MIG with stateful configuration—a stateful MIG—has the following limitations:

To see the full list of MIG limitations, which varies based on the configuration that you use, see MIG limitations.

Create a MIG with stateful disks

Use the Google Cloud console, the gcloud CLI, Terraform, or REST.