Designing for Availability and Disaster Recovery on GCP: RPO, RTO, Zonal, Regional and Multi-Regional Architectures
Failure Domains
| Level | What can fail | Protect with |
|---|---|---|
| Instance / disk | One VM or disk | Managed instance groups, autohealing, snapshots |
| Zone | A whole zone | Regional resources across 2 or more zones |
| Region | A region (rare) | Multi-region design and DR in another region |
| Service / dependency | A product or a third party | Timeouts, retries, circuit breakers, fallbacks |
| Human error / bad deploy | Wrong change, deleted data | Backups, versioning, canary, IaC, least privilege |
Availability and SLAs
- If services run in series, multiply availability. If they are redundant (parallel), failure probability multiplies and availability rises
- Google products publish SLAs. Regional and multi-region options usually have higher SLAs than zonal ones
- Your design sets availability. Using a single zone cannot exceed a single zone's reliability
text
Series: LB 99.99% x App 99.9% x DB 99.95% = about 99.84%
Parallel: two independent 99.9% copies = 1 - (0.001 x 0.001) = 99.9999%
Zonal, Regional and Multi-Regional Resources
| Scope | Examples |
|---|---|
| Zonal | Compute Engine VM, zonal persistent disk, zonal GKE cluster |
| Regional | Regional MIG, regional persistent disk, regional GKE, Cloud SQL HA, Cloud Run (runs in multiple zones), Filestore Enterprise |
| Multi-regional / global | Cloud Storage multi-region, global load balancer, Spanner multi-region, BigQuery multi-region, Firestore multi-region, Pub/Sub |
RPO and RTO
| Term | Meaning |
|---|---|
| RPO (Recovery Point Objective) | How much data you can lose, measured in time |
| RTO (Recovery Time Objective) | How long you can be down |
Smaller targets cost more. Business owners set them per application, and different apps in a company can have different targets.
DR Patterns
| Pattern | How it works | RTO / RPO | Cost |
|---|---|---|---|
| Backup and restore (cold) | Backups stored in another region. Rebuild with IaC and restore after a disaster | Hours / hours | Lowest |
| Pilot light | Data replicates continuously. Minimal core runs in DR region, scaled up on failover | Tens of minutes | Low |
| Warm standby | Scaled-down full copy always running | Minutes | Medium |
| Hot / active-active | Full capacity in two or more regions serving traffic | Near zero | Highest |
Data Replication Options
| Service | Option |
|---|---|
| Cloud Storage | Dual-region or multi-region buckets, turbo replication |
| Cloud SQL | HA across zones, cross-region read replica promoted on disaster |
| AlloyDB | Secondary cluster in another region |
| Spanner | Multi-region configuration (RPO near zero) |
| Bigtable / Firestore | Multi-cluster or multi-region |
| Compute disks | Snapshots to multi-region storage, regional disks |
| BigQuery | Dataset replication and managed disaster recovery option (check current features) |
Traffic Failover
- A global external Application Load Balancer with backends in two regions sends users to the closest healthy one and fails over automatically on health check failure
- Cloud DNS failover or weighted routing for regional load balancers
- Keep TTL low for records you may switch
- Use Anycast IP to avoid DNS caching delays
text
Users ─► Global Application LB (one IP, health checks)
├─► Region A (asia-south1): regional MIG / GKE / Cloud Run ─► Cloud SQL primary (HA)
└─► Region B (asia-southeast1): regional MIG / GKE / Cloud Run ─► Cloud SQL replica (promote on disaster)
Cloud Storage: multi-region bucket Backups: another project and regio
DR Plan Checklist
- Define RPO and RTO per application
- Pick the pattern that fits and the budget
- Automate infrastructure with Terraform in the DR region
- Check quotas in the DR region and reserve capacity if needed
- Write runbooks (who decides, steps, rollback)
- Test regularly: restore backups, fail over, measure real RTO and RPO
- Protect backups from deletion and ransomware (retention locks, separate project)
Practice
- Choose a DR pattern for an app with RTO 15 minutes and RPO 5 minutes
- Compute availability for a three-tier series design
- Design a two-region load balancer failover for a web app
- List the steps to promote a Cloud SQL cross-region replica
Conclusion
Design for failure at each level. Use regional resources for zone failures, multi-region and DR patterns for region failures, set RPO and RTO per application, automate recovery with code and test it regularly.
Quick Summary: failure domains; availability; scope; RPO RTO; patterns; replication; failover; checklist.

