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
asked 6 months ago178 views
2 Answers
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
EXPERT
Steve_M
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago
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
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions