Skip to main content

Perform Aiven for PostgreSQL® switchback to the primary region Limited availability

Shift your workloads back to the primary region, where your service was hosted originally before switching over to the recovery region.

Prerequisites

Switch back

Use the Aiven CLI to perform a switchback:

avn service disaster-recovery promote-to-master \
--project PROJECT_NAME \
SERVICE_NAME

Replace the placeholders with your actual values:

  • PROJECT_NAME: Your Aiven project name
  • SERVICE_NAME: Name of your primary PostgreSQL service

Monitor the switchback status:

avn service disaster-recovery get \
--project PROJECT_NAME \
SERVICE_NAME

When the switchback process is completed, your primary service is Active, and the recovery service is Passive, which means the primary service is in control over your workloads.

Related pages