Sub topic 2
Setting recovery targets: RTO and RPO
Every disaster recovery (DR) design starts with two numbers. This chapter explains what they mean, how to derive them from business impact, and how to check that a design can meet them. It assumes you know AWS Regions and Availability Zones (AZs), and that you have used managed databases such as RDS, Aurora, or DynamoDB. It also assumes you can read basic JSON and CLI output. Later chapters build the four strategies on the targets you set here.
The two targets
The recovery time objective (RTO) is the longest outage the business accepts. It is measured from the moment the service stops working until it works again for users.
The recovery point objective (RPO) is the most data the business accepts losing. It is measured backward from the moment of the disaster to the last recoverable copy of the data.
An RTO of 1 hour means the service must be back within 1 hour of failing. An RPO of 15 minutes means that after recovery, the data may be missing at most the last 15 minutes of writes.
The two targets are independent. A reporting system can have a loose RTO (a day) but a strict RPO (no lost records). A stateless marketing site can have a strict RTO (minutes) and no RPO at all, because it holds no data that changes.
What the targets are not
- RTO and RPO are objectives, not guarantees. A design only has a recovery capability, which you measure by testing. Compare the measured result against the objective.
- They are not the same as an availability SLA. An SLA such as 99.9% describes expected uptime over a month. RTO describes how long one bad event may last.
- A related term is the maximum tolerable downtime (MTD). It is the point where the business itself is damaged. Set the RTO well below it, because the RTO must leave room for work that happens after recovery, such as data reconciliation.
Deriving targets from business impact
Do not pick targets by asking "what do we want?" The answer is always "zero." Instead, estimate what an outage and a data loss cost, then decide how much you will pay to reduce them.
For each workload, answer these questions with the business owner:
- What do we lose per hour of downtime? Include lost revenue, SLA penalties, and idle staff. Include regulatory exposure and reputation damage where you can estimate them.
- How does that cost change over time? Some systems lose little in the first hour and a lot after eight. Payroll matters on pay day. A ticketing site matters during a sale.
- Can lost data be re-created? Orders can sometimes be re-entered from emails or payment-provider records. A sensor reading cannot be.
- Do laws or contracts set a limit? Some financial and health rules require specific retention or recoverability.
- What does the workload depend on? A workload cannot recover faster than the slowest dependency it needs.
A worked example
An online store has three workloads. The team estimates costs and sets targets:
| Workload | Impact of downtime | Impact of data loss | RPO | RTO |
|---|---|---|---|---|
| Checkout and orders | About $12,000 per hour in lost sales | Paid orders cannot be re-created reliably | 1 minute | 30 minutes |
| Product catalog | Browsing stops, but cached pages still serve | Rebuilt from the source system nightly | 24 hours | 4 hours |
| Internal reporting | Analysts wait | Re-run from the data lake | 24 hours | 48 hours |
Checkout is the only workload that justifies an expensive strategy. If a 4-hour outage costs about $48,000 (4 × $12,000), you can compare that against the yearly cost of keeping a recovery environment running. Suppose a warm copy adds $3,000 a month, or $36,000 a year. One serious event every year or two would roughly pay for it. If the team expects a Region-wide event once in a decade, the case is weaker, and a cheaper strategy with a longer RTO may be the right trade. This is a judgement, so record the numbers and the reasoning. That makes the decision reviewable later.
Setting targets per workload is the main saving. One company-wide target forces every system into the most expensive tier.
Tiering workloads
Most organizations group workloads into a few tiers so that teams do not negotiate every case from scratch. The values below are an example, not an AWS standard.
| Tier | Typical use | RPO | RTO |
|---|---|---|---|
| 1 | Revenue-critical, customer-facing | Seconds to minutes | Minutes |
| 2 | Important, tolerates a short outage | Minutes to an hour | 1 to 4 hours |
| 3 | Internal or batch | Hours | 8 to 24 hours |
| 4 | Rebuildable or low value | 24 hours or more | Days |
Later chapters show that these ranges line up with the four strategies. Longer targets fit backup and restore, and shorter ones need pilot light, warm standby, or multi-site active/active.
What the RTO is made of
The RTO covers the whole path from failure to working service, not only the time to start servers. A common mistake is to budget only for the technical restore.
- Detection: monitoring notices the failure and raises an alarm.
- Decision: a person or an automated rule decides to fail over. In a Regional event this is often the longest step, because nobody wants to fail over on a false alarm.
- Recovery: data is restored or promoted, compute is started or scaled up, and configuration is applied.
- Traffic shift: DNS or routing sends users to the recovery environment. DNS caching can delay this by up to the record's time to live (TTL).
- Validation: someone checks that the application works end to end before declaring it recovered.
You can budget these steps explicitly. The script below sums them and compares the total against the target:
rto_target_minutes = 60
steps = {
"detection": 5,
"decision": 15,
"restore_or_promote_data": 20,
"scale_up_compute": 10,
"dns_ttl_propagation": 2,
"validation": 10,
}
total = sum(steps.values())
print(f"Estimated recovery time: {total} minutes (target {rto_target_minutes})")
for name, minutes in sorted(steps.items(), key=lambda s: -s[1]):
print(f" {name}: {minutes} min")
if total > rto_target_minutes:
print("Design does not meet the RTO. Shorten the largest steps first.")
else:
print("Design fits the RTO on paper. Confirm it with a DR test.")With these numbers the total is 62 minutes, which misses a 60-minute RTO. The output shows that the decision step and the data step are the best places to save time. Automating the failover decision or promoting a replica instead of restoring a backup changes the result more than faster servers would.
What the RPO is made of
The RPO is set by how recent your last recoverable copy is. It depends on the mechanism that creates the copy:
| Mechanism | What sets the worst-case data loss |
|---|---|
| Scheduled backups | The interval between backups, plus the time to copy the backup to another Region |
| Point-in-time recovery | The continuous log window, usually minutes |
| Asynchronous replication | The replication lag at the moment of failure |
| Synchronous replication | Close to zero, but only within a limited distance, and it adds write latency |
Two details matter here. A daily backup does not give you an RPO of 24 hours if the cross-Region copy takes 3 hours to finish. The copy that exists in the recovery Region is the one that counts. Replication lag also varies. Aurora Global Database typically shows lag under one second, and S3 Replication Time Control targets replication of 99.99% of objects within 15 minutes. Both are targets under normal conditions, so measure the lag in your own workload and alarm on it.
Common errors
- Confusing HA with DR. Multi-AZ deployments protect against an AZ failure and usually recover automatically in minutes. A Regional disaster, or a data-loss event such as a bad deployment or a deleted table, needs a copy outside the failed scope. Set separate targets for each failure scope.
- Replication is not a backup. Replication copies a corrupted or deleted record to the replica within seconds. If the RPO must survive human error or ransomware, you also need versioned or point-in-time backups.
- Ignoring restore time growth. A restore that took 20 minutes at 100 GB can take hours at 10 TB. Recheck the RTO as data grows.
- Forgetting dependencies. A tier 1 application that needs a tier 3 identity service, license server, or third-party API is limited by that dependency. Give dependencies targets equal to or stricter than the workloads that need them.
- Treating the target as proven. A number on a slide has not been tested. Use the DR test results as the evidence, as the testing chapter describes.
- Choosing zero. An RPO of zero across Regions needs synchronous writes or an application design that tolerates conflicts. Both have costs. Ask what the business loses with a 5-second RPO before paying for zero.
Checking a design against the targets
Once you have targets, use this order to test a candidate design:
- List the data stores and write down the RPO each replication or backup mechanism can deliver.
- Take the worst case across all stores. That is the RPO of the workload.
- Add up the RTO steps from the previous section for the slowest recovery path.
- If either number misses its target, change the design or renegotiate the target with the business.
Exercise
A workload has an RPO of 15 minutes and an RTO of 1 hour. It takes an AWS Backup snapshot every 6 hours and copies it to another Region. The copy takes about 40 minutes. Does this meet the RPO? Name one change that would help.
Show answer
No. Counting from the snapshot start, the newest snapshot in the recovery Region can be up to 6 hours plus 40 minutes old, so the worst-case data loss is about 6 hours 40 minutes. That is far above 15 minutes. Options include moving the data store to asynchronous cross-Region replication (for example an Aurora global database or DynamoDB global tables), or enabling continuous backup or point-in-time recovery where supported and replicating it. Replication gives a loss window measured in seconds, which fits a 15-minute RPO. Then check the RTO separately.
Exercise
A tier 1 application's RTO budget is 30 minutes. Detection takes 5 minutes, the failover decision takes 20 minutes, and promoting the database takes 8 minutes. Which step do you change first, and why?
Show answer
The failover decision. It takes the most time (20 minutes), and the total of 33 minutes already exceeds 30 before compute scaling, DNS, and validation are counted. Pre-approve the failover criteria, or automate the failover with health checks and alarms, so that nobody has to deliberate during the event. Speeding up database promotion would save at most a few minutes.