Fit a regional recovery to measured RPO and RTO
Compare standby designs, time the critical path, recover container dependencies and fence writes during failover.
Task 4.2 · Fit a regional recovery to measured RPO and RTO
An order service has 30 minutes to recover
Detection takes four minutes. Scaling requires twelve minutes and data promotion eight; those two can run in parallel after detection. Routing takes three minutes and end-to-end validation four after both finish. Replication during peak import sometimes trails by seven minutes against a five-minute RPO.
Compare your design with the worked answer
The ideal timed path is 4 + max(12, 8) + 3 + 4 = 23 minutes. The RTO has seven minutes of margin but the measured RPO misses by two minutes. Fix peak replication lag, test shared dependencies under recovery identities and require a safe writer handoff. Run the clock through a successful user write. Preserve reverse replication and reconciliation steps for failback.
If the new cluster must rebuild images after primary failure, add that dependency to the critical path or preposition an authorized registry. Rerun the measurement on fresh nodes.
4.2.1 · Choose a regional recovery posture
RPO limits lost committed work and RTO limits elapsed restoration time. Measure detection, authorization, scaling, data promotion, routing and user validation on the critical path. Backup/restore, pilot light, warm standby and active-active have different standing costs and recovery work. Use measured times to rule out infeasible choices.
4.2.2 · Validate continuous replication under peak change
AWS Elastic Disaster Recovery can continuously replicate supported server disks to staging and launch recovery instances. Compare replication capacity with peak write rate. Account for application-consistent recovery points and coordinated server groups. Test isolation, launch order and the latest recoverable transaction.
4.2.3 · Make recovery a controlled procedure
Use Resilience Hub assessments to surface gaps against a resilience policy and version recovery runbooks in Systems Manager or an equivalent controlled system. Name owners, permissions, decision gates, dependencies, data validation and failback. Automate repeatable operations and test under recovery-account identities.
4.2.4 · Fence writes before changing global traffic
Replication and endpoint routing are separate. Ensure the old writer is fenced or ownership is coordinated before promoting the recovery writer. Validate lag, keys, secrets, quotas and network paths. Route 53, Global Accelerator or Application Recovery Controller can direct traffic or control failover subject to client behavior. Plan reverse replication before failback.
4.2.5 · Time recovery from a user’s perspective
Run an isolated drill with known seed transactions and ongoing writes. Record the incident start, last surviving commit and first validated user operation. Include identity, data, communication and failback. Compare measured RPO/RTO against policy and assign owners to misses. A service assessment supports evidence but cannot replace an end-to-end test.
4.2.6 · Recover a container service beyond its cluster
An independent cluster needs images by digest, manifests, secrets, workload identity, quotas, networking and durable state. Mirror or grant access to dependencies before the incident. Decide which Region owns stateful writes and how to scale the standby without manual permissions. Test a fresh pull and real transaction.
Apply the video example
The S3 discussion connects cross-Region copies with recovery and regulatory requirements. Follow one copied object into the secondary Region and name the other application dependencies a copy alone cannot restore.
Measure recovery time and lost writes independently
The business accepts a 20-minute recovery time and at most 5 minutes of lost writes. Start the clock at the interruption. After detection, database promotion and fleet scaling can run concurrently. Routing waits for both and validation follows routing. The newest recoverable write is measured separately at the moment of interruption. Save as failover.py and run python3 failover.py.
def drill(name, detect, promote, scale, route, validate, lag):
elapsed = detect + max(promote, scale) + route + validate
time_result = "met" if elapsed <= 20 else "missed"
data_result = "met" if lag <= 5 else "missed"
print(f"{name}: RTO {time_result} ({elapsed} min), RPO {data_result} ({lag} min)")
drill("baseline", detect=3, promote=7, scale=9, route=3, validate=4, lag=4)
drill("stale replica", detect=3, promote=7, scale=9, route=3, validate=4, lag=8)
drill("cold fleet", detect=3, promote=7, scale=15, route=3, validate=4, lag=4)
Check the output and change one assumption
baseline: RTO met (19 min), RPO met (4 min)
stale replica: RTO met (19 min), RPO missed (8 min)
cold fleet: RTO missed (25 min), RPO met (4 min)A warm fleet cannot repair stale data. More frequent replication cannot start cold workers sooner. If scaling must wait for promotion, replace max(promote, scale) with promote + scale. The baseline then takes 26 minutes. In a real rehearsal, sample a committed write and time the first correct client transaction after traffic moves.
Fit a regional recovery to measured RPO and RTO quiz
Answer 6 questions. Check each answer for an explanation.