It seems that the instance group manager is re-creating the instance for you. This may happen in two scenarios. Either when the initial creation of the instance fails per this document, or when the health check fails (auto-healing). Looking at the graph, it seems the latter is causing a recreation of the instance, as per this document, “Health checks that you apply to managed instance groups will proactively signal to the managed instance group to delete and recreate instances if they become UNHEALTHY.” You may check if this is the case by checking the operations log as explained in this old thread. (Same Log message, but status could be different)
This does not necessarily mean that the instance itself is not healthy, but rather a configuration of the health check. For example, if you created an "http" health check, and you do not have a web server returning “valid HTTP response with code 200, (that) close the connection normally within the configured period.”, several probes will fail and the instance will be marked unhealthy". You may check this document for further explanation about configuring health checks. I hope this helps.
It seems that the instance group manager is re-creating the instance for you. This may happen in two scenarios. Either when the initial creation of the instance fails per this document, or when the health check fails (auto-healing). Looking at the graph, it seems the latter is causing a recreation of the instance, as per this document, “Health checks that you apply to managed instance groups will proactively signal to the managed instance group to delete and recreate instances if they become UNHEALTHY.” You may check if this is the case by checking the operations log as explained in this old thread. (could be a different operation log message)
This does not necessarily mean that the instance itself is not healthy, but rather a configuration of the health check. For example, if you created an "http" health check, and you do not have a web server returning “valid HTTP response with code 200, (that) close the connection normally within the configured period.”, several probes will fail and the instance will be marked unhealthy". You may check this document for further explanation about configuring health checks. I hope this helps.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/ea54784a-01c6-4b87-add6-3b9dccd840a3%40googlegroups.com.
As mentioned in this thread, you should have a message in the operation’s log “Recreate an instance” with operation type: “compute.instances.repair.recreateInstance.” The same message should be logged in stackdriver logs under ““GCE VM instance”. However, You may get more information in the “Status message” in operations log. (status message differ, and not operation log message above)