简体   繁体   中英

AWS EC2 free tier instance is automatically stopping frequently

I am using ubuntu 18.04 on AWS EC2 instace free tier, running websites on apache server, NodeJS with PostgreSQL database. All deployments are done perfectly and webapps works fine without any exception or error details.

However I am facing an annoying issue: this instance is stopping frequently without any exception or error logs. After rebooting instance everything starts working fine but after some time it automatically stops either in few hrs. on same day when rebooted instance or in 1-2 days after that.

I created another free tier instance with seperate account and that is also giving same issue. I am not finding any logs or troubleshoot option to get rid of this problem.

I would like to know how it can be troubleshooted or where can i find logs of any errors or exception for this isntance?

Suggestion given by AWS in "Instance Status Checl" as attached below are not practicle solution to apply evertime.

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Something with your VM itself is causing its health checks to fail.

Have a look at syslogs, and your application logs. Also take a look at CloudWatch metrics to see if any metrics have dramatic change close to time.

You can also add a CloudWatch alarm with a recovery action to automatically reboot if there's an issue with your VM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM