EC2 crashes periodically

0

EC2 crashes periodically without any error messages

질문됨 2년 전217회 조회
2개 답변
1

Set autoscaling for desirenmd number of one and set 2 as max, thus way the healthcheck will recognize unhealthy insurance and start a second instance while first one is going be destroyed,

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html

답변함 2년 전
0

There are multiple options.

You can either scale vertically which implies getting a more powerful machine.

A better solution would be to scale horizontally. Look at setting up an auto-scaling group of EC2 machines with an Application Load Balancer in front to load balance traffic. You can look at this tutorial for guidance - https://docs.aws.amazon.com/autoscaling/ec2/userguide/tutorial-ec2-auto-scaling-load-balancer.html. For the content to be shared across multiple machines, you can look at EFS. Take a look at this video - https://pages.awscloud.com/Learn-to-Build-a-Cloud-Scale-Website-Powered-by-Amazon-EFS_0522-STG_OD.html

There could be many more options if re-architecture is an option.

If you like my answer please upvote and accept it. Thanks

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인