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ヶ月前188ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ