Disaster recovery strategies
The four disaster recovery strategies, backup and restore, pilot light, warm standby and multi-site active/active, their RPO and RTO, the all-AWS multi-Region design, and DR tips.
Four strategies
From cheapest and slowest to most expensive and fastest (faster RTO):
- Backup and restore (RPO/RTO: hours).
- Pilot light (tens of minutes).
- Warm standby (minutes).
- Hot site / multi-site active/active (near real time).
The first three are active/passive: the DR site doesn't serve traffic until a failover. All four can be used across AWS Regions.
Backup and restore (high RPO)
- Back up data to AWS: from on premises through Storage Gateway or Snowball to S3, with lifecycle rules to Glacier.
- In AWS, take scheduled snapshots of EBS, Redshift and RDS (or use AWS Backup).
- After a disaster, re-create everything: EC2 from AMIs, databases from snapshots (ideally with CloudFormation).
- Cheap (only storage is billed), but RPO and RTO are high.
Pilot light
- A small version of the app is always running in the cloud: the critical core (the pilot light), usually the database, kept in sync.
- Very similar to backup and restore, but faster, because critical systems are already up.
- Application servers are prepared (AMIs, templates) but not running; on failover, start them and switch DNS.
Warm standby
- The full system is up and running, but at minimum size.
- Upon disaster, the environment scales to production load (Auto Scaling) and switch traffic with Route 53 failover.
Multi-site / hot site
- Very low RTO (minutes or seconds), very expensive.
- Full production scale is running on AWS and on premises, both active.
All-AWS multi-Region
The same multi-site idea with two AWS Regions: production in both, Route 53 active-active, and Aurora Global Database replicating to the secondary Region (promote it on failover).
Disaster recovery tips
- Backup:
- EBS snapshots, RDS automated backups and snapshots, etc.;
- regular pushes to S3 / S3 IA / Glacier, lifecycle rules, cross-Region replication;
- from on premises: Snowball or Storage Gateway.
- High availability:
- use Route 53 to migrate DNS from Region to Region;
- RDS Multi-AZ, ElastiCache Multi-AZ, EFS, S3;
- Site-to-Site VPN as a recovery from Direct Connect.
- Replication:
- RDS replication (cross-Region), Aurora + Global Databases;
- database replication from on premises to RDS;
- Storage Gateway.
- Automation:
- CloudFormation / Elastic Beanstalk to re-create a whole new environment;
- recover / reboot EC2 instances with CloudWatch if alarms fail;
- AWS Lambda functions for customized automations.
- Chaos: Netflix has a "simian army" randomly terminating EC2 instances, to prove the system survives failures. (On AWS, the Fault Injection Service does this in a controlled way.)
AWS Resilience Hub can check whether a workload is likely to meet its RPO and RTO targets. Test the DR plan regularly: an untested plan is a guess.
Exam tips
- "Lowest cost, RPO/RTO of hours is fine" → backup and restore.
- "Database must stay in sync, servers can start on failover, tens of minutes" → pilot light.
- "Scaled-down full copy always running, minutes" → warm standby.
- "Near-zero downtime, cost no object" → multi-site active/active.
- "Multi-Region DR for a relational database with RPO of about a second" → Aurora Global Database.
Common traps
- "Pilot light runs a small copy of the whole app." Only the core (data) runs; that's warm standby.
- "Warm standby serves production traffic normally." It's passive until failover; active/active is multi-site.
Check yourself
Pilot light or warm standby: replicate the database continuously (RDS cross-Region replica or Aurora Global Database), keep AMIs and templates ready; for a reliable sub-15-minute RTO, warm standby with a minimum Auto Scaling group is safer, and Route 53 failover switches traffic.
Backup and restore: the cheapest strategy.
AWS documentation
Disaster Recovery & Backup
What a disaster is, the kinds of disaster recovery, RPO and RTO, and the map of this group.
AWS Elastic Disaster Recovery
AWS Elastic Disaster Recovery (DRS) for recovering physical, virtual and cloud servers into AWS with continuous block-level replication, point-in-time recovery, drills and failback.