Instance stops every two hours aproximatelly

0

My EC2 instance is stopping without notice about every two hours, I have an Unbutu OS installed with WHM and 4 differente wordpress websites each with its own CPanel account. First of all I would like to add an alarm that will alert me of this. And then start looking for what the problem might be. The anyalitics are fine, there is not CPU or memory problems, the instance just stops.

Any ideas of where to start looking for the problem???

Jenn
질문됨 6달 전189회 조회
2개 답변
0

You can create a CloudWatch alarm when an instance fails its status check https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html#creating_status_check_alarms

As to why it's happening, installing CLoudWatch Agent would give you more detailed metrics to start on your troubleshooting https://repost.aws/questions/QUWmyZXUGlSWScKtu8kRiZFw/instance-stops-every-two-hours-aproximatelly

One place to start looking at is the system load, what is the instance type? To start off the system may appear to run fine with four Wordpress sites, but consumption may rise gradually until a key resource like CPU or memory is exhausted (I'm not saying this is happening, this is just a guess based on what I've seen before). The metrics from CloudWatch Agent should help to confirm this, and it may end up being that the instance type needs to be uplifted to one with more CPU and memory, or if it's just memory you may be able to get away with merely adding more swap space.

profile picture
전문가
Steve_M
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전
0

Thank you, I will install the cloudwatch, to monitor closely. However, the instance does not fail, it just shuts down, that is why I wanted an alarm for shut-off rather than fail. And the CPU and Memory look good they dont seem to be exhausted. I will follow your advice, to see if I get to the bottom of this.

Jenn
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠