Lesson 2 of 6 Disaster Recovery and Business Continuity

Protecting Servers with AWS Elastic Disaster Recovery

This lesson explains how AWS Elastic Disaster Recovery (AWS DRS) protects servers that cannot easily be re-architected by replicating their disks continuously to AWS and launching recovery instances on demand, at pilot-light cost with an RPO of seconds.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how DRS replicates servers to a staging area.
  • Describe drills, failover and failback.
  • Describe launch settings for recovery instances.
  • Distinguish DRS from AWS Application Migration Service and AWS Backup.

How DRS works

An agent on each source server, whether on premises, in another cloud or on EC2 in another Region, continuously replicates the server's block storage to a staging area subnet in the recovery Region. The staging area uses small replication servers and low-cost EBS volumes rather than full-size copies of the servers, so the standby cost is a fraction of running a duplicate environment, while the replicated data is only seconds behind.

On recovery, DRS converts the replicated disks so they boot on EC2 and launches fully provisioned recovery instances within minutes, from the latest state or from an earlier point in time. Point-in-time recovery is what makes DRS useful against ransomware and data corruption: the servers can be restored to a moment before the damage, rather than to a replica that already contains it. Because DRS works at the block level, it protects any application on supported operating systems without changes to the application.

Drills, failover and failback

AWS Elastic Disaster Recovery (DRS) continuously replicates servers' block storage to a low-cost staging area and supports the whole recovery cycle. A drill launches recovery instances in an isolated network while replication continues, so the plan can be tested regularly without disrupting production. In a recovery, the recovery instances become production, and DNS or load balancers are pointed at them. Failback begins once the source site is restored: DRS replicates changes made during the outage back to the source, and the workload returns. For EC2 sources, cross-Region reverse replication protects the recovered workload in turn. The following table summarises the stages.

StageWhat happens
DrillRecovery instances are launched in an isolated network while replication continues, so the plan is tested without disruption
RecoveryRecovery instances become production; DNS or load balancers are pointed at them
FailbackOnce the source site is restored, DRS replicates changes back and the workload returns
Cross-Region reverse replicationFor EC2 sources, replication is reversed so the recovered workload is protected in turn

Configuration

Launch settings on each source server define how its recovery instance is created: instance type, subnet, security groups, IP addressing and licensing, and DRS can choose an instance type that matches the source automatically. Post-launch actions run Systems Manager documents on recovery instances, for example to update configuration for the new environment or to install monitoring agents.

Replication settings define the staging area subnet, the replication server instance type and the network path: over the internet, or privately over Direct Connect or VPN. Data is encrypted in transit and at rest. Because recovery instances inherit these settings, they are tested in drills rather than discovered during a real recovery.

DRS compared with other tools

DRS overlaps with several tools, and scenarios distinguish them by purpose and recovery time. AWS Application Migration Service uses the same replication technology for a one-way move to AWS; DRS adds repeatable drills, point-in-time recovery and failback, because disaster recovery is a cycle rather than a single move. AWS Backup also offers point-in-time recovery, but restoring servers from backups takes hours, whereas DRS launches them in minutes.

For managed databases, database-native replication, such as Aurora Global Database or DynamoDB global tables, gives better recovery with less effort than block-level replication; DRS suits self-managed servers and applications that cannot easily be re-architected. The following table summarises the choice.

ToolPurposeRecovery time
Elastic Disaster RecoveryOngoing DR for servers, with drills, point-in-time recovery and failbackMinutes
Application Migration ServiceOne-way migration of servers to AWSNot a DR tool
AWS BackupPoint-in-time backups across servicesHours for servers
Database-native replicationCross-Region replicas of managed databasesAbout a minute
Worked example

Recovering from ransomware with point-in-time recovery

An insurer protects 30 on-premises Windows servers with Elastic Disaster Recovery into eu-central-1. One night, ransomware encrypts the file systems on several servers, and the encrypted blocks replicate to the staging area within seconds. Recovering to the latest state would recover the encrypted data, so the team chooses a point in time before the attack:

# List the recovery snapshots available for an affected server
aws drs describe-recovery-snapshots --source-server-id s-0claims01 \
  --query 'items[].{id:snapshotID,time:expectedTimestamp}' --output table

# Drill first: launch into the isolated recovery subnet from the snapshot taken before the attack
aws drs start-recovery --is-drill \
  --source-servers sourceServerID=s-0claims01,recoverySnapshotID=pit-0a1b2c3d4e5f

The drill instances are checked for clean data in an isolated subnet while replication continues. Once they are confirmed, the same command without --is-drill launches the recovery instances, and DNS is pointed at them. When the data centre is clean, DRS replicates changes made in AWS back to the source servers for failback. Replication alone, without point-in-time snapshots, would have offered no protection against this logical disaster.

Check yourself

How does Elastic Disaster Recovery keep costs low until a failover?

Show answer

It replicates servers continuously to a low-cost staging area with small replication servers and inexpensive storage, and launches full-size recovery instances only for a drill or a failover.

Exam Tips

Remember for the exam

  • An RPO of seconds and an RTO of minutes for servers, at low standby cost, point to Elastic Disaster Recovery.
  • DRS replicates block storage continuously to a low-cost staging area.
  • Drills launch recovery instances without interrupting replication.
  • Point-in-time recovery in DRS restores servers to a moment before corruption or ransomware.
  • DRS supports failback; Application Migration Service is for one-way migration.