Reputation: 1834
I'm running a cloud load balancer to dispatch incoming requests to two CPE instances.
It runs fine on some days, on others the instances are getting restarted for no obvious reason so all processes (mainly tomcat) are getting terminated and users are receiving errors.
I'm not running Preemptible VM instances (I've check according to Why do my google cloud compute instances always unexpectedly restart? )
How can I find out why the instances are getting restarted? The experience is getting more and more frustrating. I used to run a cluster of cheap hosted servers for years before switching to GCP and never had any issues - and it was much (much) cheaper. I thought I would get better performance and better scalability, but if the whole setup is not realiable, it does not make much sense.
How do I get any info WHY the instances are getting restarted. I do not find anything in my logs (neither in load balancer, nor in the compute engine logs).
Upvotes: 1
Views: 2948
Reputation: 529
Probably the instance are failing because of the health check or any other issue like (Live migrate, Terminate and Automatic restart event). That being said, I would recommend checking your stackdriver logs for the particular instance to see why the instances are getting restarted. Also at the same time also I would recommend you to check this article which will help you to understand and see logs for Live migrate, Terminate and Automatic restart this type of event.
Upvotes: 1