- Newest
- Most votes
- Most comments
I'd encourage you to use autoscaling group behind ELB so that such events can be handled automatically.
There could be many reasons for failed "instance status check".
If ELB with auto scaling group is not the option, you can opt then, take a look at Linux instance check failure.
If this helps, that's great otherwise start looking at Troubleshoot instances with failed status checks to isolate the issue and rectify it.
Let me know how it goes.
If your server is running out of memory, it could cause it to become unresponsive. This is one of the most common causes of server unresponsiveness, and it can happen when you're running heavy applications or services that consume a lot of memory. Since you're running Lemmy, which is a complex web application, it's possible that it's consuming more memory than the t2.micro instance can provide. You can check your instance's memory usage by logging into your AWS console and looking at the CloudWatch metrics for the instance
also you can check detailed installation requirements from the link https://join-lemmy.org/docs/administration/on_aws.html
Relevant content
- asked a year ago
- Accepted Answerasked 6 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
I agree you are probably running out of memory and suggest a large instance type. You will not find memory usage in CloudWatch unless you install CloudWatch log agent on the instance to export the memory metrics. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html)
Your best, quickest way to troubleshoot would be to change the instance type.
Thanks for the response! Looking at Cloudwatch metrics, I can see that some of the outages seem to correspond to CPU spiking to 100%. I will change the instance type as a troubleshooting step.
Absolutely, consider changing instance type, this would help you immediately. Long term, as I suggested, you should consider autoscaling group behind ALB, this would never let you get into that situation where instance got down and your application is impacted.