AWS Certified Solutions Architect – Professional
AWS Elastic Disaster Recovery failover and failback (SAP-C03)
The AWS Elastic Disaster Recovery guide says the service replicates source servers continuously at block level into a staging area, then launches drill or recovery instances from the latest state or an earlier point in time. Failover, meaning redirecting traffic, is done by you outside the service. Failback replicates data from the recovery instances back to the source.
Continuous replication: what RPO and RTO to expect
The AWS Replication Agent watches the blocks written to each source server's volumes and copies them straight to a staging area subnet in your AWS account. The staging area uses low-cost storage and minimal compute. Source servers can be on premises or in the cloud.
AWS states a crash-consistent recovery point objective (RPO) of seconds and a recovery time objective (RTO) that typically runs between 5 and 20 minutes. The RTO depends mostly on operating system boot time: an average Linux server boots in about 5 minutes and an average Windows server in about 20. At launch the service converts volumes that came from outside AWS so the instance boots natively on EC2.
The RPO holds only while the network and the staging resources keep up with the write rate. Ten servers that each write 10 MB per second need at least 100 MB per second of outbound bandwidth. If writes outrun the link, the RPO grows until replication catches up. Data still in application memory is not replicated until it is written to disk.
Point-in-time snapshots and drills
The service keeps point-in-time (PIT) snapshots, each a crash-consistent set of EBS snapshots, one per replicated volume. The default schedule keeps one every 10 minutes for the last hour, one an hour for the last 24 hours, and one a day for the last 7 days. Only the daily retention can be changed, from 1 to 365 days, in the replication settings. Longer retention adds EBS cost.
A recovery drill launches drill instances by the same process as a real recovery. It does not affect the source servers or ongoing replication, so you can launch from a chosen point in time and inspect it while protection continues.
Choosing the most recent data makes the service try to take a fresh snapshot, which needs a live connection to the source server and waits up to 10 minutes. If the source is offline, picking an existing point in time can be faster.
Recovery, failover and failback are separate steps
AWS defines the terms narrowly. Recovery is launching recovery instances on AWS. Failover is redirecting production traffic to them, which you do outside the service, typically with DNS such as Amazon Route 53. Failback returns the workload to the source infrastructure by replicating data from the recovery instances back.
For an on-premises source, you boot the Failback Client on the server that will receive the data. It supports x86_64 servers only. The client connects to the recovery instance on TCP 1500, over a VPN or Direct Connect or a public IP, so the recovery instance must allow TCP 1500 inbound and TCP 443 outbound. The receiving server's volumes must be the same size as the recovery instance's or larger.
The target matters for speed. Failing back to the original source server replicates only the changes made after recovery. Failing back to a different server synchronizes all the data. When the recovery instance shows Ready, you choose Failback, which stops replication and starts the conversion.
How is it different from MGN?
Both services replicate servers into a staging area with an agent. The difference is the end state. AWS Transform MGN, the migration service, is built for a one-time move: finalizing a cutover stops replication, discards the replicated data and terminates the replication resources.
Elastic Disaster Recovery is meant to keep replicating during normal operation, with periodic drills, a history of points in time to recover from, and a path back to the primary site. After a recovery you can also choose to keep the applications in AWS.
Where the exam catches people
- Believing Elastic Disaster Recovery moves users to the recovery instances: it launches the instances. Redirecting traffic is your step, outside the service.
- Believing the default policy keeps weeks of recovery points: daily points are kept for 7 days unless you raise the daily retention, up to 365 days.
- Believing a drill pauses protection: drills do not affect the source servers or ongoing replication.
- Believing failback to new hardware costs the same as failback to the original server: the original receives only the changes since recovery, and a different server receives everything.
- Believing the recovery instance opens the failback connection: the Failback Client on the source side connects to the recovery instance on TCP 1500.