Sub topic 11
Using AWS Elastic Disaster Recovery
This chapter assumes you know EC2, EBS volumes, VPC subnets, and the pilot light idea from the previous chapters. It covers AWS Elastic Disaster Recovery (DRS), a managed service that replicates whole servers into a recovery Region. It is the second place pilot light shows up in practice: you keep a small, cheap footprint running and build the rest at failover time.
What the service does
DRS continuously copies the disks of a source server to a low-cost staging area in your target AWS account and Region. The source can be a physical server, a VM, or an EC2 instance in another Region or account. You do not run a full copy of the application while you wait.
Three pieces make this work:
- Replication agent. You install it on each source server. It sends block-level changes to the target.
- Staging area. A small replication server in the target Region receives the data and writes it to EBS volumes. The staging area uses low-cost resources, so the steady-state bill is far below a full second environment.
- Launch template. A per-server setting that defines the instance type, subnet, security groups, and other options for the recovery instance.
When you start a recovery, DRS converts the replicated disks and launches EC2 instances from them. This is why DRS fits the pilot light pattern: the data is always current, and the compute appears only when needed.
Recovery targets
Replication is continuous, so the recovery point is usually seconds behind the source. The recovery time is typically minutes, because instances launch from data already in place. Actual numbers depend on data volume, server count, and boot time, so measure them. Do not assume them.
| Item | Typical behavior |
|---|---|
| RPO | Seconds to minutes, set by replication lag |
| RTO | Minutes, set by conversion and boot time |
| Idle cost | Staging servers and EBS storage, no full compute fleet |
Where it fits
DRS suits workloads that run on servers you manage, especially when rewriting for managed services is not an option. Examples are lift-and-shift applications and on-premises servers that need a cloud recovery site.
It is a weaker fit for managed data services. RDS, Aurora, and DynamoDB have their own replication features, covered earlier. DRS replicates servers and their disks, so use it for the compute tier and use native replication for managed databases.
Common errors
- Stale launch templates. Template settings drift from the production network. A subnet or security group that no longer exists blocks the launch. Review templates on a schedule.
- Skipped drills. DRS can launch drill instances without affecting replication. Teams that never run a drill find problems during a real event.
- Replication lag ignored. A slow link or a high change rate makes the lag grow. Monitor it, because it is your real RPO.
- Missing dependencies. Replicating one server does not replicate the DNS records, load balancer, or IAM roles around it. Handle those with infrastructure as code and your traffic failover setup.
Exercise
Your team runs a legacy application on EC2 instances in us-east-1 and needs a pilot light setup in us-west-2 without rebuilding the application. Name two things DRS keeps running in us-west-2 during normal operation, and one thing it does not replicate for you.
Show answer
DRS keeps a low-cost staging replication server and the replicated EBS volumes running in us-west-2. It does not replicate surrounding resources such as DNS records, the load balancer, or IAM roles, so you must recreate them with infrastructure as code and traffic failover configuration.