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
demandé il y a 6 mois189 vues
2 réponses
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
répondu il y a 6 mois
profile pictureAWS
EXPERT
vérifié il y a 6 mois
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
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions