Step 1: Deploy the primary and replica databases

The first step of the disaster recovery setup for the Data Center Edition (DCE) deployed on Kubernetes consists in deploying the primary and replica databases.

The setup instructions are based on a Disaster recovery architecture example with Azure resources.

Deploy the primary and replica PostgreSQL databases on Azure as follows:

  1. On the Azure Database for PostgreSQL flexible server creation page of your primary database, select your subscription and resource group.

  2. In Server details > Compute + storage, select Configure server. A new pane opens.

In the Server details of your primary Azure database, select Configure server
  1. In Backups, enable the Geo-redundancy.

Enable the geo-redundancy by selecting the Recover from regional outage or disaster option
  1. Once the primary database has been deployed, create the replica database. To do so, go to the primary database resource page > Settings > Replication > Create replica. Ensure that you select a different Availability zone than for the primary database.

Create the replica database and set a different Availability zone that for the primary database
  1. Create virtual endpoints: go to Database Settings > Replication > Virtual endpoints.

The following pane is displayed.

Last updated

Was this helpful?