Cross-region disaster recovery
Cross-region disaster recovery requires the Enterprise Business Critical tier. It is generally available for AWS, Azure, and GCP dedicated clusters.
How disaster recovery works
- The primary cluster runs all Deployments in Region A.
- A multi-region database replicates Deployment metadata to the secondary cluster in Region B.
- Multi-region object storage copies task logs to the secondary cluster.
- User-deployed images are replicated to the secondary cluster.
- On failover, the secondary cluster is promoted to active. All Deployments, configuration, environment variables, connections, and Airflow variables transfer automatically.
- Clusters and Deployments retain their IDs, names, namespaces, and system-managed configuration after failover. All hostnames — including the Airflow UI, Airflow API, and Remote Execution API URLs — are updated to point to the secondary cluster and remain the same.
- For Deployments that use Remote Execution, only the Astro-managed orchestration plane fails over. The execution plane runs in your own infrastructure and isn’t part of Astro’s region failover, but your Remote Execution Agents reconnect to the promoted secondary cluster automatically. See Remote Execution in DR pairs.
RTO and RPO
The following table defines the recovery time objective (RTO) and recovery point objective (RPO) for DR clusters. Targets are benchmarked with 80+ Deployments and 1,250+ concurrent task runs.
The RPO target covers task logs and depends on the Task Logs Replication SLA, which is enabled by default. See Task Logs Replication SLA.
Deployment metadata replicates continuously to the secondary cluster rather than on a fixed schedule. On Azure, you can monitor the current database and object storage replication lag on the cluster’s Disaster Recovery tab. See Trigger failover.
Data loss during failover and failback
Failover and failback have different data loss characteristics:- Failover: Astro promotes the secondary metadata database while the primary region might be unreachable. You can lose up to the amount of data represented by the current replication lag.
- Failback: Astro stops writes to the secondary cluster before promoting the original primary, which guarantees zero data loss.
What gets failed over
The following items transfer to the secondary cluster automatically during failover:- Deployments and data pipelines
- Dag run history, task instance metadata, and XComs
- Deployment configuration
- Environment variables, connections, Airflow variables, and metrics exports — whether configured with Environment Manager or directly on the Deployment
- Task logs. The Task Logs Replication SLA guarantees a 15-minute RPO and is enabled by default.
- Deployment images
- Networking and DNS configuration. Configure these using self-service networking features, or work with Astronomer support. See Networking considerations.
imagePullSecretsfor Kubernetes Pod Operators (KPOs)- Customer-managed workload identities. You must configure the workload identity and trust relationships for the secondary cluster separately. See Workload identity.
- Customer-managed network routing on the secondary cluster, such as AWS Transit Gateway
- Remote Execution Agents and their supporting infrastructure. Agents run in your own environment and aren’t part of Astro’s region failover. See Remote Execution in DR pairs.