Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

1. Introduction

This page will show us how to create a cascade configuration using PostgreSQL. This page will have the below topic covered.

...

  1. The configuration name of the cascade standby cluster.

  2. The source hosts data directory.

  3. the cascade standby hosts data directory.

  4. The important point is that we are creating the cascade configuration and the replication mode must be same as the source configuration.

  5. As per requirement, the cascade configuration must be created as Hot Standby.

  6. The method used for creating the cluster is WAL Streaming as the source configuration (PG-5435-13)

  7. The connection is successful in creating

  8. the replication for cascade configuration.

  9. Enable the observer to monitor the configuration.

  10. Click Start to start creating the DR cluster.

Image RemovedImage RemovedImage AddedImage Added

After successfully creating the DR cluster. The status of the original cluster ( 1 ) and the cascade standby cluster ( 2 ). Any transaction happening in the source host (centlin71.oraclekiwi.co.nz) will be first applied to the standby host (centlin72.oraclekiwi.co.nz), and then the changes are applied to the cascade standby cluster (nzel81.oraclekiwi.co.nz). The status of both the standby and the cascade standby are now Synced and it is In Sync status.

Image RemovedImage Added

4. Graceful Switchover

The switchover process can only be run for the original configuration (PG-5432-13) and not for the cascaded configuration (PG-5435-13-CAS). Even after the switchover is completed, the sync process will continue with the new configuration setting to the cascade configuration standby server (nzel81.oraclekiwi.co.nz). The configuration instead of being a cascaded configuration (A-->B-->C) has become a configuration with 2 standby clusters with the same source host (A -->B A-->C).

...

Now, a switchover can be performed for the cascade configuration(PG-5435-13-CAS), making the standby host (nzel81.oraclekiwi.co.nz) the primary host by doing this. The original configuration (PG-5435-13) becomes the cascade configuration.

...