Skip to main content

Perform Aiven for PostgreSQL® switchover to the recovery region Limited availability

Perform a planned promotion of your recovery service while the primary service is healthy.

Switch over to your Aiven for PostgreSQL® recovery service for planned maintenance, simulating a disaster, or testing the resilience of your infrastructure.

Prerequisites

Switch over

Use the Aiven CLI to perform a switchover:

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 recovery PostgreSQL service

Monitor the switchover status:

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

Verify the service state after switchover:

avn service get \
--project PROJECT_NAME \
SERVICE_NAME

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

Related pages