I have to make a web app (with a redis database) highly available on aws, I’m still debuting and I was asking myself a question
It seems that with AWS Ec2 auto scaling, the EC2 will restart in case of failure, but what of the volume ? After each restart are all data lost ? The volume is kept and only the ami ec2 is relaunched ? (same for ECS and amazon auto scaling)
Thank you for reading me !
2
Answers
It depends on the type of EC2 you have.
With Instance Store, the data is lost when your EC2 instance is terminated. When using EBS, the data layer is preserved.
There is more information in the documentation.
This is not correct. The EC2 instance will be Terminated (deleted) and an entirely new instance will be created. The disk volume in this scenario will not be preserved.