Operating · Chapter 27
Databricks disaster recovery and high availability
Reviewed by TechFabric engineers. How we write this guide →
On Databricks, high availability (HA) means surviving the loss of one availability zone inside a region, and the platform does it for you: the control plane recovers from a zone failure in about 15 minutes and serverless compute fails over between zones on its own. Disaster recovery (DR) means continuing in a second region when the first is unavailable, and that's yours to arrange, either with Databricks' managed disaster recovery where you qualify or with your own replication of tables, grants, jobs and secrets (disaster recovery).
That line is where an architecture review usually goes quiet. This chapter covers what the platform does, what managed DR covers and doesn't as of October 2026, how Lakebase's HA and cross-region DR differ, and how we'd turn a DR document into something rehearsed.
The short version
High availability and disaster recovery are different problems with different owners. Surviving the loss of a data centre inside a region is the platform's job and it largely happens without you, while surviving the loss of the whole region is yours, because nothing crosses a regional boundary unless you arranged for it to. The work divides into deciding how much data loss and how much downtime each workload can actually tolerate, which is never one number for the whole estate, and then making sure everything that workload needs exists somewhere else. That list is longer than people expect, because the tables are the obvious part and the grants, the job definitions, the secrets, and the streaming state are the parts that get discovered during the incident. Whatever you build, it is a document rather than a capability until you have rehearsed it.
What is the difference between high availability and disaster recovery on Databricks? #
Databricks describes high availability as recovering from an outage affecting a single cloud zone transparently to users, and disaster recovery as recovering from an outage affecting an entire cloud region by continuing in a secondary one. That line is also the line between their responsibility and yours.
Inside a region you get a good deal for free. Databricks documents that the control plane is resilient to zone failures and recovers automatically within approximately 15 minutes, and serverless compute provides multi-zone failover with nothing to switch on. Classic compute can move to another zone provided you deployed the workspace subnets into at least two of them (Databricks recommends three), which is a decision made once at deployment time. A single cluster's nodes still sit in one zone, so a zone failure restarts it elsewhere rather than carrying it through. Underneath all of it, the Delta transaction log means an interrupted write leaves a table at its last committed version rather than half updated.
What none of that provides is a second region. A Unity Catalog metastore is regional, workspace secrets are per workspace, and job definitions, dashboard definitions, cluster policies and grants all live where you created them.
Managed disaster recovery: what it covers and what it doesn't #
Databricks now offers managed disaster recovery (page last updated 21 October 2026), and it changes the plan for anyone who qualifies. It's gated: you apply through your account team, and it needs the Enterprise plan with the Mission Critical add-on and serverless compute on both workspaces, whose compute is then billed at the Mission Critical rate. In return Databricks replicates Unity Catalog managed tables with their data, external tables and volumes as metadata, views, functions and every grant, plus notebooks, jobs, SQL warehouses, clusters and draft dashboards with their ACLs. Job schedules arrive paused in the secondary, and an optional stable URL always points at the current primary, so JDBC clients and the UI keep working after failover.
The limits are where we'd spend the review. Not replicated: managed volumes, Unity Catalog and workspace secrets, ML models, serving endpoints, vector search (now AI Search) indexes, Delta shares, published dashboards (drafts do replicate), Structured Streaming outside Lakeflow pipelines, non-Delta external tables that use partition metadata, and tables with Delta archival. In Private Preview: materialized views, streaming tables and Lakeflow pipelines, foreign catalogs, Genie Agents, and tables with row filters, column masks or ABAC policies. Three smaller behaviours belong in the runbook: renaming a securable recreates it in the secondary, UNDROP doesn't propagate, and time travel by timestamp can return the wrong version in the secondary unless in-commit timestamps are on. Outside that preview, a table with a filter, mask or ABAC policy is flagged as failed to replicate and holds up the recovery point until it's taken out of scope, which means the tables you protected most carefully are the ones it won't carry unless you're in the preview. While it runs, the secondary's catalogs are read-only and you can't run compute there, so you can't operate your own replication beside it in that workspace. And the first bootstrap of workspace assets on a large workspace can take up to five days, once, before the failover group reaches ACTIVE and failover is available.
Which way we'd go depends on what the estate is made of, more than on its size:
| If most of the critical tier is | We'd use | Because |
|---|---|---|
| Managed Delta tables written by Databricks jobs, with grants in Unity Catalog | Managed DR for those, bundles for the jobs | It carries the data, the grants and paused schedules, and the stable URL removes the repointing step |
| Lakeflow pipelines and the streaming tables and materialized views they own | Your own plan: bundles to a paused DR target, reprocess from a boundary, unless you're in the Private Preview | Managed DR replicates them only in Private Preview |
| Tables protected by row filters, column masks or ABAC policies | Your own plan, run as a dedicated replication identity (below), unless you're in the Private Preview | Outside the preview, managed DR flags them as failed, and a table-level filter or mask blocks every clone |
| Tables written by outside engines through the Iceberg REST catalog | Write through Databricks compute, or replicate them yourself | Databricks warns those writes might not be detected and can be lost in a failover |
The protected tables are the awkward row, because the obvious copy doesn't work either. Databricks' limits are blunt: deep and shallow clones aren't supported on a table with a table-level row filter or column mask, so DEEP CLONE fails before it copies a byte, and putting the policy back with Terraform afterwards doesn't help a clone that never ran. Under ABAC it's different, because a principal explicitly excluded from a policy can still clone the underlying data. So the procedure we'd write down is: protect these tables with ABAC policies rather than table-level filters; create one service principal for DR replication and add it to each policy's exception list, through the same reviewed change as the policy; run the scheduled DEEP CLONE jobs as that principal only, into a DR catalog nobody else can read; and have Terraform apply the same policies to the DR copies so they're protected the moment they're readable. A table that has to keep a table-level filter needs a different path, such as rebuilding it in the DR region from its sources with a pipeline, and we'd list it by name in the plan so nobody assumes the clone job covers it. The other check we'd schedule is freshness of the copies themselves, because a clone job that has been failing quietly for a week turns a 15-minute plan into a week of loss. The clone runs as a job, so its last good run is a system-table query, alerted on whenever it's older than the tier's RPO:
-- last successful run of the DR clone job, against a one-hour RPO.
-- No GROUP BY, so the aggregate always returns one row: a job that has never
-- succeeded (or never run) alerts with last_success NULL instead of returning nothing.
SELECT :dr_workspace_id AS workspace_id,
:dr_clone_job_id AS job_id,
MAX(period_end_time) AS last_success
FROM system.lakeflow.job_run_timeline
WHERE workspace_id = :dr_workspace_id
AND job_id = :dr_clone_job_id
AND result_state = 'SUCCEEDED'
HAVING MAX(period_end_time) IS NULL
OR MAX(period_end_time) < current_timestamp() - INTERVAL 1 HOUR;Lakebase high availability vs cross-region disaster recovery #
Lakebase draws the same line for Postgres, with two separate features. High availability keeps a primary and one to three secondaries in different zones of the same region, replicated synchronously, so a compute failure fails over automatically with no committed data lost and the same connection string; the secondaries can optionally serve reads. Disaster recovery replicates periodically to a project in a secondary workspace in another region, whose compute stays idle until you need it. It's in Private Preview and Databricks says it isn't for production use yet. Failover is always manual, the application moves to a new connection string and token, and transactions that hadn't replicated land on a recovery branch, so the recovery point is measured in minutes.
| High availability | Cross-region disaster recovery | |
|---|---|---|
| Protects against | Compute or zone failure in one region | Loss of the region |
| Replication | Synchronous, one to three secondaries | Periodic, to an idle secondary project |
| Data loss on failover | None for committed transactions | Minutes; the tail goes to a recovery branch |
| Failover | Automatic, same connection string | Manual, new connection string and token |
| Stage, October 2026 | Available on Lakebase projects | Private Preview, not for production |
Neither covers the bad write. That's point-in-time restore, a branch from any moment inside the history window, which runs from 2 to 30 days with a default of 7 (point-in-time restore). The Gilbert session's recovery from an UPDATE that lost its WHERE shows the mechanics, and the window is a number we'd settle per database with the business, the way the tier table below settles RPO. A production runbook for that repair also needs a step that stops or queues writers before data is copied back.
How do you set RPO and RTO for Databricks? #
Two terms carry the conversation. The recovery point objective is the maximum period of data loss the business can tolerate, and the recovery time objective is the maximum time within which the process must be restored. Both are business decisions rather than technical ones, and the mistake we'd look for first is setting them once for the platform.
That produces one of two bad outcomes, because either the number is set by the most critical workload and you are now paying to replicate a sandbox catalog at fifteen minute granularity, or it is set by an average and the regulatory report has the same protection as somebody's experiment. We'd tier instead, and four tiers is usually enough.
| Tier | Typical workload | RPO | RTO | How it is achieved |
|---|---|---|---|---|
| Critical | Regulatory reporting, decisions made in a live application | Under 15 minutes | Under 1 hour | Warm standby, continuous replication, bundles pre-deployed with schedules paused |
| Important | Daily finance and operations gold tables | Up to 4 hours | Up to 8 hours | Scheduled cross-region clone, infrastructure defined in code and deployed on demand |
| Standard | Self-service analytics and exploration | 24 hours | 24 hours | Rebuild from code plus whatever storage replication the cloud account already provides |
| Reproducible | Bronze landing zones whose source system still holds the data | Source retention | Best effort | Replicate nothing, re-ingest |
The fourth row does more work than the first three, because a meaningful share of most estates does not need replicating at all when the upstream system still has the data and the pipeline that loaded it is in git. We'd assign every catalog to a tier before writing any replication, because that exercise removes a large part of the problem and is what makes the critical tier affordable.
What actually has to exist in the other region #
Data moves either through the cloud provider's own storage replication for raw and external data, or through Delta deep clone for tables, which Databricks' DR guide names for managed table data. A deep clone copies data and metadata into an independent table, and the guide notes later syncs run faster than the first copy. Databricks warns against using storage replication on the workspace's own root bucket.
-- Runs on a schedule in the secondary region. prd_source is a catalog in the
-- secondary metastore through which the primary table is readable.
CREATE OR REPLACE TABLE originations_dr.gold.loan_application_daily
DEEP CLONE prd_source.gold.loan_application_daily;The comment is where the design work sits. A Unity Catalog metastore is regional, so the secondary can't name the primary's tables until you give it a route, and Databricks' DR guide names deep clone without prescribing one. We'd prove the route on one large table, including how long the second and third runs take, before writing the job for the rest.
The metastore and its grants are re-applied from Terraform rather than copied, which is only true if the grants were defined in Terraform in the first place. An estate where permissions were granted by people in a browser has no recovery path for its permissions, and discovering that during a failover is how a recovered platform ends up open to everyone or open to nobody. Code comes from git, which is the one part almost every organisation already has right.
Jobs and pipelines are redeployed from Declarative Automation Bundles (formerly Asset Bundles) into a DR target, following the promotion discipline in CI/CD and Environments. The detail that matters is that the DR target is deployed continuously with its schedules paused, so failover is an activation rather than a deployment. Deploying under pressure into a region you have never deployed into is where most plans discover their gap.
#!/usr/bin/env bash
set -euo pipefail
TARGET=dr
# The same artefact that runs in production, deployed into the DR target.
# That target's schedules are paused, so nothing begins running on deploy.
databricks bundle validate --target "$TARGET"
databricks bundle deploy --target "$TARGET"
# Bring the critical tier up to its last replicated point.
databricks bundle run replicate_tier_one --target "$TARGET"
# Schedules are resumed only after a person has verified the step above.
# That resumption is a deliberate separate action, never part of the deploy.Secrets have to exist in both regions and their contents legitimately differ, because a connection string in the secondary region points at secondary region resources. This is the item we'd expect a plan to miss, and it fails in the least helpful way, which is a pipeline that deploys cleanly and then cannot authenticate to anything.
Then there are the things people forget until a rehearsal finds them, which are streaming checkpoints as covered below, schema registries and any contract store the pipelines read at startup, dashboard and alert definitions that are workspace objects rather than code unless you chose otherwise, service principals and their entitlements, and every external system holding a URL pointing at the primary region, because a recovered platform nobody can reach is not recovered.
Do streaming checkpoints work after a regional failover? #
A Structured Streaming checkpoint is what lets a query restart after a failure, and Databricks' DR guidance is to keep checkpoints in customer-managed storage so they can be replicated to the secondary region, replicate them promptly, and expect to change the data location recorded inside one before the stream restarts there. That works when the replicated checkpoint and the replicated data describe the same history.
The checkpoint is a record of progress against one specific source. It holds the offsets consumed, which for a Delta source means table versions and for a file source means files seen at their paths, plus state for any stateful operation. If the secondary's copy of the source has a different commit history, as a deep clone does, the version numbers in the checkpoint point at different commits, and the stream either refuses to start or starts in the wrong place, quietly skipping or reprocessing a window. Storage replication of both data and checkpoint keeps the history aligned, as long as the checkpoint isn't ahead of the data it describes.
So we'd pick one of two designs per stream when the pipeline is built. The first is to accept reprocessing from a known-good boundary, which needs idempotent downstream writes, usually a merge on a business key rather than an append, and defines recovery by how far back the stream must go. The second applies to a stream that writes a table: a deep clone copies the table's stream metadata, so a stream writing to the source can be stopped and continued against the clone from where it left off. It doesn't help a stream that reads from the table, whose progress is still recorded against the primary's commit history. The delivery semantics behind both are in Real-Time Ingestion and CDC.
Warm standby against backup and rebuild #
There are three shapes and the choice trades money against time.
An active-passive warm standby is the common one and the one we'd recommend for anything in the critical tier. A second workspace exists, infrastructure and job definitions are deployed into it continuously, data replicates on a schedule matching the tier, and nothing runs until failover. It costs the replication, the storage, and the discipline of deploying twice, and it buys a recovery measured in the time a person takes to verify and activate.
Backup and rebuild carries the highest recovery time and the lowest standing cost, and it suits the standard tier. The bet is that Terraform plus bundles plus git can construct a working workspace where none exists, and it is a bet you only win if you have actually run it.
Active-active gives the lowest recovery time and point objectives by running the same workloads in both regions, and it is the most complex and expensive of the three because every job runs twice and the pipelines have to tolerate that. We'd recommend it only where a workload genuinely cannot be down for an hour.
The ordering is the point. Repointing consumers before verifying the data turns an outage into an incident about wrong numbers, which is considerably harder to recover from than being down, for the reasons set out in Observability and Reliability.
Assembling a cross-region recovery on each platform
| Capability | Databricks | AWS | Azure | GCP |
|---|---|---|---|---|
| Zone failure survived without configuration | Serverless multi-zone failover, control plane failover | Multi-AZ, configured per service | Zone-redundant tiers, chosen per service | Regional services, zone-redundant by default |
| Cross-region table replication | Delta deep clone or managed DR | Bucket replication plus a catalog copy step | Object replication plus a catalog rebuild | Dual-region storage or dataset replicas |
| Catalog metadata and grants in the second region | Terraform re-apply, or managed DR where you qualify (tables with row filters, masks or ABAC policies only in Private Preview) | Glue catalog and Lake Formation replicated separately | Metastore and Purview handled separately | Dataset and IAM policy re-apply |
| Job and pipeline definitions | Bundles deployed continuously to a DR target | Templates redeployed per service | Templates redeployed per service | Templates redeployed per service |
| Streaming progress across regions | Replicated checkpoint with aligned data, reprocess from a boundary, or resume a writer against a clone | Reprocess, checkpoints are source specific | Reprocess, checkpoints are source specific | Reprocess, checkpoints are source specific |
| Places the plan has to be maintained | Two, storage and the bundle plus Terraform definitions | One per service in the stack | One per service in the stack | One per service in the stack |
The last row is the argument we'd make to an architecture review. No platform makes cross-region recovery free, and the difference is how many independent recovery procedures the plan contains, because a plan with nine of them is one nobody rehearses in full.
Recovering from a bad write #
Region loss is the scenario a DR review argues about; a dropped table or an UPDATE without its WHERE is the one most likely to happen, and the two have different repairs. A dropped Unity Catalog managed table comes back with UNDROP TABLE within seven days of the drop (SHOW TABLES DROPPED IN <schema> lists what can be recovered); RESTORE can't help, because there is no table to resolve. For bad data in a table that still exists, the repair is RESTORE TABLE ... TO TIMESTAMP AS OF or TO VERSION AS OF, after DESCRIBE HISTORY has shown the last good version:
DESCRIBE HISTORY originations_prd.gold.loan_application_daily;
RESTORE TABLE originations_prd.gold.loan_application_daily TO VERSION AS OF 412;It's bounded by retention: delta.deletedFileRetentionDuration defaults to 7 days, and on Databricks Runtime 18.0 and above time travel past it is blocked (table history), so a critical table that needs a longer window needs the property raised before the incident. Restoring one table also leaves everything computed from the bad version still wrong, the same downstream problem as a failover, and Lakebase's equivalent is the point-in-time branch described above.
Testing, which is the whole thing #
An untested DR plan often fails at the moment you need it, and the reasons are always small ones such as a service principal that exists in one region and not the other, a secret scope nobody created, a hard-coded region in a connection string, or a quota in the secondary region that was never raised because nothing ever ran there.
We'd schedule the exercise rather than intend it, at least twice a year for the critical tier, with a named owner and a runbook that lives in the repository beside the pipelines it recovers. The runbook states, in order, how to declare the event, how to confirm the last replicated position for each critical table, how to deploy and verify before anything is resumed, how to resume schedules, how to repoint consumers, and how to communicate to the people reading the numbers. Failback is written down too and treated as a planned maintenance window rather than an emergency, because synchronising back everything the secondary produced while it was live is genuinely harder than the failover was.
The measure of the exercise is not whether it succeeded, since a rehearsal that succeeds first time usually means the scope was too narrow, but what it found, and every finding should close as a change to code or configuration rather than as a paragraph added to a document. A plan executed against a real secondary region is a capability, and everything else is a paper commitment that the review will accept and the incident will not.
What's popular