QuestionQ55

VerifiedPlanning and implementing a cloud solution

Your application is running on Google Cloud in a managed instance group (MIG). You see errors in Cloud Logging for one VM that one of the processes is not responsive. You want to replace this VM in the MIG quickly. What should you do?

Explanation

The gcloud compute instance-groups managed recreate-instances command is the quickest way to replace a specific VM in a MIG. It terminates the instance and spins up a new one using the current instance template, allowing minimal downtime for the affected workload.

Community Discussion

No comments yet. Be the first to start the discussion!