Anatomy of a warm standby

A second Region that runs small: what it is made of, what has to grow when the first one is impaired, and where AWS says so. Scroll to take it apart.

Scale model of two AWS Regions as stacked layers: load balancers, a fleet of servers and a database in each, the second Region's fleet smaller with the empty places outlined, requests coming down from above onto the first Region's load balancer, Route 53 and ARC on a plate above them with a dashed line of DNS queries to its name servers, a thin line from the name servers to each Region's load balancer, and a dashed line of replication between the two databases
All anatomiesBack to all anatomies

Drag to turnCtrl + scroll to zoomClick a partDrag to turnTwo fingers to move and zoomTap a part

Warm standby

Two Regions, one of them small

Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.

Step 1 of 11

Smaller, but running

Region B runs the whole workload, scaled down. Only Region A takes traffic.

“The warm standby approach involves ensuring that there is a scaled down, but fully functional, copy of your production environment in another Region.”
AWS: Disaster recovery options in the cloud

Step 2 of 11

Ready to answer

Everything in Region B is already deployed and running. Unlike a pilot light, it could take requests right away, at reduced capacity.

“The distinction is that pilot light cannot process requests without additional action taken first, whereas warm standby can handle traffic (at reduced capacity levels) immediately.”
AWS: Disaster recovery options in the cloud

Step 3 of 11

The data keeps moving

Writes go to Region A only. Every change is copied to Region B, so its data is live.

“With active/passive strategies, writes occur only to the primary Region.”
AWS: Disaster recovery options in the cloud

Step 4 of 11

Easy to test

Region B is always on, so recovery is easier to test, even continuously.

“This approach also allows you to more easily perform testing or implement continuous testing to increase confidence in your ability to recover from a disaster.”
AWS: Disaster recovery options in the cloud

Step 5 of 11

Region A is impaired

A service disruption impairs Region A: its servers stop answering, its Aurora writer is not available, and replication to Region B stops. Region B is running, but small.

This step is the scenario, not a statement from AWS.

Step 6 of 11

One button, many steps

A person starts the failover, and ARC Region switch orchestrates all of it as one operation, with pre-flight checks and health validation.

“For warm standby and multi-site active/active patterns, use ARC Region Switch to orchestrate the failover as a single operator-initiated operation with pre-flight checks and health validation.”
AWS Well-Architected: REL13-BP02

Step 7 of 11

Scale up

The desired capacity of Region B's Auto Scaling groups is raised, and the fleet grows to full production capability. This step leans on the control plane.

“Because Auto Scaling is a control plane activity, taking a dependency on it will lower the resiliency of your overall recovery strategy.”
AWS: Disaster recovery options in the cloud

Step 8 of 11

The trade-off

Region B now runs at full production capability. Kept at full size all the time, it would be a hot standby: it would cost more, and nothing would have to grow.

“Or you may choose to provision fewer resources which will cost less, but take a dependency on Auto Scaling.”
AWS: Disaster recovery options in the cloud

Step 9 of 11

The copy becomes the primary

In an unplanned failover, the Aurora cluster in Region B is promoted and starts taking writes. Writes not yet copied can be lost.

“The RPO for this approach is typically a non-zero value measured in seconds.”
AWS: Switchover or failover in Aurora Global Database

Step 11 of 11

What a copy cannot save

Replication copies deleted or corrupted data like any other change, so point-in-time backups or versioning are still needed.

“Replication alone does not make a workload recoverable. Continuous replication copies corruption and deletion to the recovery site as faithfully as it copies good data.”
AWS Well-Architected: REL13-BP02

The parts

Tap one, or tap it on the model

The parts

Amazon Route 53

Answers the name, and decides which Region the answer points to.

AWS: Active-active and active-passive failover

ARC Region switch and routing control

Runs the failover as one plan, and switches the traffic from one Region to the other.

  • One plan, in steps. “Each plan includes workflows that are made up of steps. Each step runs one or more execution blocks, which Region switch runs in parallel or in sequence, to complete an application recovery.”
  • Away from the impaired Region. “A data plane in each AWS Region, so that you can execute your Region switch plan without taking a dependency on the Region that you’re deactivating.”
  • The scaling is a step. Its EC2 Auto Scaling block “will allow you to start increasing capacity in the passive Region.” AWS: Tutorial: Create an active/passive Region switch plan
  • On-off switches. “Routing controls are simple on-off switches that enable you to switch your client traffic from one Regional replica to another.” AWS: Routing control in ARC
  • Not a health check. “It's important to note that routing controls are not themselves health checks that monitor the underlying health of endpoints.” AWS: About routing control
AWS: Region switch in ARC

Evaluate target health

Route 53 reads each load balancer's health from its targets, and answers with a healthy record when there is one.

  • Yes, for a load balancer. Setting Evaluate target health to Yes “allows Route 53 to route traffic away from unhealthy resources.” AWS: Values specific for simple alias records
  • When it reads unhealthy. “If any target group contains only unhealthy targets, the load balancer is considered unhealthy, and Route 53 routes queries to other resources.”
  • No checks on the load balancers. “If you're routing traffic to any AWS resources that you can create alias records for, don't create health checks for those resources.” AWS: Active-active and active-passive failover
  • With the routing control. Each record also carries its routing control's health check. “If you associate a health check with an alias record and also select Yes for Evaluate Target Health, both must evaluate to true.”
  • If it were automatic. For automated failover, AWS asks for health checks that look like real use: “Design health checks that are representative of user experience and based on Key Performance Indicators.” Here a person starts the failover. AWS: Detection
AWS: Values specific for failover alias records

Elastic Load Balancing

The front door of each Region.

  • Spreads the load. “Elastic Load Balancing automatically distributes your incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones.”
  • Grows by itself. “Elastic Load Balancing scales your load balancer capacity automatically in response to changes in incoming traffic.”
  • Built before the event. “Create functions, load balancers, API gateways, and tables before an event, as part of failover rehearsal.” AWS Well-Architected: REL11-BP04
AWS: What is Elastic Load Balancing?

The fleet, small

Amazon EC2 Auto Scaling groups, spread across Availability Zones in each Region, and smaller in Region B.

  • Raised on failover. “For example, for EC2, increase the desired capacity setting on the Auto Scaling group.”
  • Quotas first. “Ensure that service quotas in your DR Region are set high enough so as to not limit you from scaling up to production capacity.”
  • A control plane step. “Because Auto Scaling is a control plane activity, taking a dependency on it will lower the resiliency of your overall recovery strategy.”
  • Within its limits. “The desired capacity must be equal to or greater than the minimum group size, and equal to or less than the maximum group size.” AWS: Set scaling limits for your Auto Scaling group
  • If it stays small. AWS on spare instances held in the recovery Region: “Where you must cap that spare capacity for cost reasons, throttle the total traffic reaching the reduced fleet so it degrades gracefully.” AWS Well-Architected: REL11-BP04
AWS: Disaster recovery options in the cloud

Aurora Global Database

One writer in Region A, a copy in Region B that can be promoted.

  • Writes from Region B. “With write forwarding enabled, an application that's connected to a secondary cluster can run SQL statements that perform write operations.” AWS: Using write forwarding in an Aurora global database
  • One source of truth. “The data is always changed first on the primary cluster and then replicated to the secondary clusters in the Aurora global database.” AWS: Using write forwarding in an Aurora global database
  • An outage in Region A. In an unexpected outage of its primary Region, “your primary Aurora DB cluster and its writer node aren't available, and the replication between the primary and secondary DB clusters stops.”
  • Unplanned: failover. “The RPO for this approach is typically a non-zero value measured in seconds.”
  • How long. “Typically, the chosen secondary cluster assumes the primary role within a few minutes.”
  • When Region A is back. Aurora names two failover methods for an unplanned outage. After a managed failover, the one AWS recommends for disaster recovery, “As soon as that old primary Region is healthy and available again, Aurora automatically adds it back to the global cluster as a secondary Region.” After a manual failover, the global database is created again.
AWS: Switchover or failover in Aurora Global Database

Backups

What protects data that was deleted or corrupted and then copied.

  • Every strategy. “Every strategy therefore needs point-in-time backups or versioning in addition to replication, so you can recover to a moment before the data was damaged.”
  • Across Regions. “Use AWS Backup to schedule and monitor cross-Region backups.”
AWS Well-Architected: REL13-BP02