How to recover Ec2 Instance in failure condition

0

Hi Team,

What is the best approach to recover the instance in case it is failure. I want to latest data of instance for last 30 min when it was failed.

Could you please help me on this ?

Thanks, Anuj Gupta

  • What are those failure conditions? AZ failure, region failure, application component breakdown?

  • Suppose server is terminated and we have 1 month old AMI so how to recover today data.

2 Answers
0

With an RPO of 30 minutes, it would be difficult to use EC2 snapshots and backups alone.
For example, important data should not be stored in EBS, but managed by an external, redundant service such as S3 or EFS.
For example, in the following document, if you use warm standby to replicate a database, it would be easy to spread the data to 30 minutes ago.
https://aws.amazon.com/jp/blogs/architecture/disaster-recovery-dr-architecture-on-aws-part-i-strategies-for-recovery-in-the-cloud/

profile picture
EXPERT
answered 10 months ago
  • Is disaster recovery create the backup in every hours automatically ? When instance is recover then will it launch from the launch template or any other?

0

I'd encourage you to use autoscaling group behind ELB so that such events can be handled automatically at least for EC2 instance, if EC2 instance is the only ask.

If there is anything related to data, then RTO, RPO come into the play and you would need to create DR plan based on which approach would work best for you out of those four:

  1. Back up and Restore
  2. Pilot Light
  3. Warm Standby
  4. Active-Active

These are ordered in ascending way for cost and descending way for RTO/RPO.

RTO/RPO: 4<3<2<1 (1 would have longest outage duration) Cost: 4>3>2>1(Maximum cost to achieve 4)

Alongwith blog post shared earlier in one of the answer, here are some of the re:Invent videos, which are really helpful:

Architecture Patterns for Multi-Region Active-Active Applications Designing for failure: Architecting resilient systems on AWS

profile pictureAWS
EXPERT
answered 10 months ago
  • I am creating the snapshot of the instance on daily basis. It is sufficient or not for recovery the instance. If any instance is failed then I can recover from snapshot but I am little confused that If I want to recover the instance before 1 hour ago data then what approach is best ? I mean I want to launch from current live server that are running before 30 min ago.

    Autoscalling concept is different. I am not asking regarding autoscaling. In Autoscaling the server launch from the launch template. but if I have launch template 5 day old then how to recover today live instance ?

    Thanks, Anuj

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