Disaster recovery
Moves a protection group's workload between regions and tests that it could: a release where it runs, a recover where it goes, a test into an isolated network, and a resync or cleanup afterwards. Each is a run that can be listed, watched, cancelled before its point of no return, aborted after it and resumed once halted. disaster_recovery_reason on GET /v1/capabilities says what runs on this cloud.
📄️ Clean up a protection group's superseded recovery
Removes what a superseded recovery left here: the servers a recover built, their ports and floating addresses. Volumes are not deleted but released from block storage, as `unmanaged_volume` resources for an operator to remove. Needs the other region's recovery record at or above the epoch held here. Returns 202 with the run. Refused with `no_newer_recovery_elsewhere`.
📄️ Remove a protection group's delegation
Removes and revokes the group's standing delegation. This region can then no longer act in the group's project for its recovery runs. Answers the same whether or not the group had one.
📄️ Create a protection group's delegation
Creates the delegation this region uses to act in the group's project for recover and failback runs, which other runs do not need. Only a project member can create it, with a password-issued token scoped to the project. System-scoped tokens and application credentials are refused. Creating it again replaces it. An operator may instead grant this service's user a role in the project.
📄️ Bind the recovered servers' backups back home
At a group's home after a failover, proposes and creates the recovery bindings importing the backups of the servers the other region recovered, for a failback to write back. One binding per member, from the other region's newest recovery record, into the group's project. A member bound into another project is refused with `binding_conflict`. `dry_run=true` only proposes. Operator only.
📄️ Show how a hot protection group's volumes are mirrored
For a `hot` group, each mirrored volume image as this region reads it from its own storage: whether it holds the primary copy, both regions' replication state, the newest complete mirror snapshot of a non-primary copy, its lag against `rpo_target`, and whether both regions hold a primary copy. Measured every pass. Empty for a group nothing mirrors.
📄️ Show what a recovery of a protection group would use
Member by member, what a recovery would recover each server to and what would refuse it now. On a recovery it is measured here: bindings, the newest imported backup or the standby, its age against `rpo_target`, whether the group has a delegation, and missing keys. On a group created here, what the recovery region last reported, with its age.
📄️ Recover a protection group
Brings the group's workload up in this region, which holds its standby copy. `planned` needs the other region's recorded release. `unplanned`, operator only, needs `confirm_primary_may_be_serving_writes`. At the group's home it is a failback. Restores or clones each member, takes over the workload, boots tier by tier. Returns 202 with the run. Refused with `workload_not_standby_here` or `release_not_observed`.
📄️ Release a protection group
Stops the group's workload here and records a release for the other region to recover from. Runs only where the workload is `running`. Pauses the members' plans, stops each server, takes a final backup, waits for it to reach every repository the other region reads, then records the release. Returns 202 with the run. Refused with `workload_not_running_here`, `group_busy` or `recovery_region_not_ready`.
📄️ Resync a protection group
Stands this region's copy of the workload down after the other region took over without a release, when the workload here is `running` and the other region recorded an epoch at or above this one. Operator only, with `confirm_discard_local_writes`. Pauses plans, stops servers, backs up each diverged member, then turns `standby`. Returns 202 with the run. Refused with `no_newer_recovery_elsewhere`.
📄️ List a protection group's disaster recovery runs
Every release, recover, test, resync and cleanup of the group in this region, newest first, including tests its registration's cadence started. A run read here carries no `members`. GET /v1/protection-groups/{id}/runs/{run_id} adds them.
📄️ Show a disaster recovery run
One run, with each member's progress through it, and with its journal and its resources on request: the steps it has taken and everything it created or meant to create.
📄️ Abort a disaster recovery run
Stops a run that is past its point of no return at its next step and leaves everything as it is: the run ends `halted` and the group `incomplete`. Nothing is removed. A halted run can be resumed. A run before its point of no return is cancelled instead. Asking twice changes nothing.
📄️ Cancel a disaster recovery run
Asks the run to stop. It is honoured at the run's next step, or at once if the run is waiting: the run removes what it created, returns the group to the state it was in, and ends `cancelled`. A run past its point of no return cannot be cancelled. Asking twice changes nothing.
📄️ Resume a halted disaster recovery run
Resumes a halted run with its journal and resources. Done steps are skipped, and the failed one is looked at again before it is retried. A resumed recover re-plans what has not run from the current mapping profile, accepted gaps, target project and probe settings, and replaces a member server that failed to build. The group must still be `incomplete` with no other run on it. Returns 202 with the run.
📄️ Show a protection group's measured protection
What the group achieved over the last 30 days against its policy's recovery targets: the recovery point its members' backups give, tested recovery times, replication lag, backup success rate and immutable protection. At the group's home, recovery times are those the recovery region writes back. A figure with no measurement is listed under `unavailable`.
📄️ Acknowledge a split brain
Clears `split_brain_risk` here by declaring the other region's copy discarded and this one running. Only this or a resync clears it. Takes the workload here above the other region's epoch and records it as a recovery there, which stops the other region running its copy until resynced. Audited. Operator only, with `confirm_other_region_discarded`.
📄️ Test a protection group
Proves the group recoverable in this region, holding its standby copy, without touching the group or its workload. Builds a test profile's isolated network, proves it closed, restores or clones the members onto it, checks them tier by tier, records `measured.rto_seconds`, then deletes it. Returns 202 with the run. Refused with `workload_not_standby_here`, or `dr_not_enabled` at the group's home.
📄️ List sites
The sites a protection policy's recovery section can name. `local` marks this one, which is where every protection group here runs.
📄️ List test profiles
The isolated networks a test can run in, as the operator has set them up. A test names one by its id, or runs under the one its group's registration names.
📄️ Create a test profile
Sets up the isolated network a test runs in: its operator project, address ranges, outbound filtering, jump host, allowed health checks, canary addresses and maximum duration. A registration names the profile its tests run under, and a test can name one itself.
📄️ Delete a test profile
Removes a test profile no registration names and no test ran under. A profile any test ran under is kept. Move registrations to another profile to stop using it.
📄️ Change a test profile
Changes the fields sent and keeps the rest. A list sent replaces the old one whole. The result is checked as on create, and the project is checked again only when `project_id` is sent.