EC2 crashes periodically


EC2 crashes periodically without any error messages

asked 2 years ago237 views
2 Answers

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,

answered 2 years ago

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 - For the content to be shared across multiple machines, you can look at EFS. Take a look at this video -

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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions