A DevOps engineer manages an application deployed across a regional Managed Instance Group (MIG) on Compute Engine. The application process occasionally encounters application-level deadlocks where it stops responding to incoming HTTP traffic, even though the underlying virtual machine instance state remains RUNNING. The engineer needs to ensure that unresponsive instances are automatically detected and replaced without manual intervention. What should the engineer do?
- Create an HTTP health check and attach it as an autohealing policy to the Managed Instance Group.Cevap
- BConfigure an autoscaling policy on the Managed Instance Group using an HTTP Load Balancing utilization target.
- CModify the instance template to use Spot VMs so Google Cloud automatically recreates instances upon application failure.
- DInstall the legacy Cloud Monitoring agent on the VM instances to trigger automated VM restarts using system metrics.
Cevap
Create an HTTP health check and attach it as an autohealing policy to the Managed Instance Group.
Attaching an HTTP health check to an autohealing policy on a Managed Instance Group allows Compute Engine to verify that the application layer is actively serving requests. If an instance experiences a deadlock and fails the health check probes, the autohealing policy instructs the group manager to recreate that specific instance.
Adım Adım Çözüm
Anahtar Kavram
Managed Instance Group (MIG) Autohealing Policies