A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/compute/docs/instance-groups/configuring-stateful-migs below:

Configuring stateful MIGs | Compute Engine Documentation

Configuring stateful MIGs

Stay organized with collections Save and categorize content based on your preferences.

You can improve the uptime and resiliency of your stateful applications with stateful managed instance groups (stateful MIGs).

By creating a stateful configuration, you can preserve the unique state of each of your MIG's Virtual Machine (VM) instances—including name, persistent disks, and metadata—on machine restart, recreation, auto-healing, or update events.

This page describes ways you can configure stateful MIGs, along with links to the guides for each task:

After you create or update a stateful configuration, you can apply it to make it effective, view the configuration as well as the effective preserved state of each VM, or remove it if you no longer need it.

If you have an existing stateful application on standalone (unmanaged) Compute Engine VMs, also see the guide to Migrate an existing workload to a stateful MIG.

Before you begin Limitations

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

Setting and preserving instance names

A MIG always preserves the names of its VM instances, unless you permanently delete the instances by decreasing the group size or by performing a rolling update that substitutes existing instances with new ones.

If you want to preserve instance names during updates, set the replacement method for the update to RECREATE in the group's update policy.

You can specify custom names by creating instances manually or you can let the MIG autogenerate names for its VMs.

Setting custom VM names is useful for:

In all other cases, you can let the MIG autogenerate VM names using the base instance name plus a random suffix.

Configuring and managing stateful persistent disks

Configuring persistent disks to be stateful lets you benefit from VM autohealing and controlled updates while preserving the state of the disks. For more information, see the use cases for stateful MIGs.

For instructions, see Configuring stateful persistent disks.

You can use instance metadata to set properties for and communicate with your applications through the metadata server. For example, you can use metadata to configure the identity of the VM, environment variables, information about cluster architecture, or data range this VM is responsible for.

By using stateful metadata you ensure that instance-specific metadata is preserved on instance autohealing, update, and recreate events.

For instructions, see Configuring stateful metadata.

Configuring and managing stateful IP addresses

You can configure a managed instance group (MIG) to preserve IP addresses on instance autohealing, update, and recreation events by declaring them stateful. Both internal and external IP addresses can be preserved. You can configure IP addresses to be assigned automatically or assign specific IP addresses to each VM instance in a MIG.

For instructions, see Configuring stateful IP addresses.

Applying, viewing, and removing stateful configuration

After you configure a MIG to be stateful, you can:

For instructions, see Applying, viewing, and removing stateful configuration.

Feedback

We want to learn about your use cases, challenges, and feedback about stateful MIGs. Please share your feedback with our team at mig-discuss@google.com.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Stateful Managed Instance Groups (MIGs) enhance the uptime and resiliency of stateful applications by preserving unique VM instance states during events like restarts, recreations, auto-healing, or updates."],["Stateful configurations allow you to manage and preserve instance names, persistent disks, metadata, and IP addresses across various VM instance events, ensuring data integrity and operational continuity."],["After creating or updating a stateful configuration, you can apply it to managed instances, view the configuration and the preserved state, or remove the configuration if it is no longer needed."],["Limitations of stateful MIGs include the inability to use autoscaling, the requirement to set the replacement method to `RECREATE` for automated rolling updates, and the need to disable proactive redistribution for stateful regional MIGs."],["You have the option to migrate existing stateful applications from unmanaged Compute Engine VMs to a stateful MIG, in addition to being able to configure and manage stateful persistent disks, metadata, and IP addresses to preserve state across various instance events."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4