Search code examples
amazon-web-servicesamazon-ec2amazon-elbamazon-ebsaws-application-load-balancer

How to make EBS volume to be available with zero downtime and attach to EC2 instance when ebs volume crashes?


I have one r5.xlarge windows ec2 instance which is attached to 6TB EBS volume and the backup for EBS is taken every week. Now I want a better solution with zero downtime.

  1. if ec2 instance fails I want new ec2 instance to be to created and it should be attached to EBS volume automatically.
  2. if EBS volume crashes I want backup snapshot to be available and gets attached to ec2 instance with zero downtime and volume content available immediately.

Is there a way to implement solution for this and how?


Solution

  • If you want to improve the availability of the large drive, I would recommend FSx. It's not so trivial - you need to set up Active Directory, and your EC2 needs to join AD - but once you have all these components (and there is additional cost as well) - FSx provides significantly higher availability than EBS assuming you're using a multi-AZ setup. More information here

    Note that load balancer tags are irrelevant to your question - although to address your first situation you probably need load balancer balancing two EC2 instances