All Products
Search
Document Center

PolarDB:Add and manage secondary clusters

Last Updated:Mar 28, 2026

After you create a Global Database Network (GDN), you can add secondary clusters to it for cross-region replication and disaster recovery. When a secondary cluster is no longer needed, remove it from the GDN — it then becomes a standalone, read/write PolarDB cluster.

Prerequisites

Before you begin, make sure you have:

  • Created a GDN. For instructions, see .

  • Reviewed the supported regions and limits below.

Supported regions

GDN is available in more than 10 regions worldwide.

Primary cluster regionSupported secondary cluster regions
Any region in the Chinese mainlandThe same region as the primary cluster, or any other region in the Chinese mainland. For example, if the primary cluster is in China (Hangzhou), the secondary cluster can be in China (Hangzhou) or any other Chinese mainland region. For other region combinations, submit a ticket.
Any region outside the Chinese mainlandChina (Hong Kong), Japan (Tokyo), South Korea (Seoul), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Thailand (Bangkok), Germany (Frankfurt), US (Silicon Valley), US (Virginia), UK (London)
Important

For regions outside the Chinese mainland, sign the Cross-Border Data Transfer Compliance Agreement before creating a secondary cluster.

Limits

CategoryLimit
Unsupported featuresServerless and In-Memory Column Index (IMCI) are not supported in GDN clusters.
Unsupported operationsDatabase and table restoration is not supported in GDN clusters.
Cluster countOne primary cluster and up to four secondary clusters per GDN.
Database engineAll clusters in the same GDN must run PostgreSQL 14.
Node specificationsSecondary cluster node specifications must be greater than or equal to those of the primary cluster. Keep specifications consistent when possible.
GDN membershipA cluster can belong to only one GDN.

Add a secondary cluster

  1. Log on to the PolarDB console. In the left navigation pane, click Global Database Network (GDN).

  2. On the Global Database Network (GDN) page, find the target GDN and click Add Secondary Cluster in the Actions column.

    image

  3. On the purchase page, configure the following parameters. For all other parameters, see .

    ParameterDescription
    RegionSelect a region. For supported regions, see Supported regions.
    Creation methodSelect Create Secondary Cluster.
    Global Database NetworkSelect the target GDN. The GDN you selected in the previous step is pre-selected.
    Database engineMust match the primary cluster: PostgreSQL 14.
    Compute node specificationsMust be greater than or equal to the primary cluster specifications. To use higher specifications, upgrade the secondary cluster after it is created.
  4. After the purchase completes, return to the Global Database Network (GDN) page. Click the Global Database Network ID of the target GDN to open its details page. The new secondary cluster appears in the Clusters section.

    image

Remove a secondary cluster

When you remove a secondary cluster from a GDN, data synchronization between it and the primary cluster stops, and the cluster switches to read/write mode as a standalone PolarDB cluster.

Important

A cluster removed from a GDN cannot be added back to any GDN as a secondary cluster. This action is irreversible.

  1. Log on to the PolarDB console. In the left navigation pane, click Global Database Network (GDN).

  2. On the Global Database Network (GDN) page, find the target GDN and click its Global Database Network ID to open the details page.

  3. In the Clusters section, find the secondary cluster to remove and click Remove in the Actions column.

    Only secondary clusters can be removed. The primary cluster cannot be removed from a GDN.

    image

  4. In the dialog box, read the notes carefully and click OK.

What to expect during removal:

  • The removal process takes about 5 minutes.

  • During removal, the endpoints of all clusters in the GDN — including the cluster being removed — remain available. Applications can continue accessing the databases through cluster endpoints.

Switch the primary cluster

Use this operation for planned maintenance or regional failover drills. Forced switchover is not supported.

Before you switch:

  • Check internet endpoints. If the current primary cluster has an internet endpoint, make sure the new primary cluster also has one. Otherwise, applications that rely on the internet endpoint will lose access. To apply for an endpoint, see .

  • Schedule during off-peak hours. The switchover causes a transient connection break of about 160 seconds.

  • Verify automatic reconnection. Make sure your application has an automatic reconnection mechanism before you proceed.

Steps:

  1. Log on to the PolarDB console. In the left navigation pane, click Global Database Network (GDN).

  2. On the Global Database Network (GDN) page, find the target GDN and click its Global Database Network ID to open the details page.

  3. In the Clusters section, find the target secondary cluster and click Switch To Primary Cluster in the Actions column.

    image

  4. In the Primary/Secondary Switchover dialog box, select the secondary cluster to promote as the new primary cluster and click OK.

See also

  • — GDN architecture and common use cases.

  • Connect to a GDN — Connect your applications to a GDN.

API reference

APIDescription
CreateDBClusterAdd a secondary cluster to a GDN. Set CreationOption to CreateGdnStandby and provide the GDNId.
RemoveDBClusterFromGDNRemove a secondary cluster from a GDN.
SwitchOverGlobalDatabaseNetworkSwitch the primary cluster of a GDN.