terraform-google-vm icon indicating copy to clipboard operation
terraform-google-vm copied to clipboard

modules/mig replacement_method should default to SUBSTITUTE

Open apeabody opened this issue 3 years ago • 3 comments

TL;DR

modules/mig replacement_method should default to SUBSTITUTE

https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#replacement_method

Terraform Resources

No response

Detailed design

No response

Additional information

No response

apeabody avatar Jun 09 '22 18:06 apeabody

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 08 '22 23:08 github-actions[bot]

@apeabody is SUBSTITUTE recommended by GCP?

bharathkkb avatar Aug 10 '22 22:08 bharathkkb

It is per https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#replacement_method:

Valid replacementMethod values are:

SUBSTITUTE (default). Replaces VM instances faster during updates because new VMs are created before old ones are shut down. However, instance names aren't preserved because the names are still in use by the old instances.

RECREATE. Preserves instance names through an update. Compute Engine releases the instance name as the old VM is shut down. Then Compute Engine creates a new instance using that same name. To use this mode, you must set maxSurge to 0.

apeabody avatar Aug 11 '22 17:08 apeabody