How do I investigate the cause of lengthy timeouts on an EC2 instance.

0

For the past 5 years I have been running 5 Wordpress sites and a mail server on an EC2 t2.medium Centos7 instance with integrated RDS. For the past 5 months I have been having to stop/start the instance every 5-6 days following lengthy timeouts which causes the instance to freeze. The instance has a 90G volume which is 60% utilized. How can I investigate the cause(s) of these timeouts?

posta 7 mesi fa183 visualizzazioni
2 Risposte
0

What is the CPU utilization and do you have the Cloudwatch agent installed for memory utilization? https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/metrics-collected-by-CloudWatch-agent.html

You could also set an alarm on high memory utilization and if it peaks (or a notification from the WP system/SNS) to have Lambda restart the instance for you. Depending on architecture you can also use a AutoScaling Groups with 1 instance minimum + health check for this same purpose.

profile pictureAWS
ESPERTO
David
con risposta 7 mesi fa
0

Following the start of the last timeout event the %CPU utilisation dropped from 11% to 2% in a period of 2minutes. It stayed at around 2% until the instance was stopped/started. Any further assistance would be much appreciated.

con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande