All Products
Search
Document Center

PolarDB:Add and manage secondary clusters

Last Updated:Mar 28, 2026

After you create a global database network (GDN), add secondary clusters to expand your database across regions. This page covers how to add a secondary cluster, remove one, and switch the primary cluster — including what happens to your data and connections during each operation.

Prerequisites

Before you begin, ensure that you have:

Limitations

Supported region pairs

GDN supports 10+ regions worldwide. The supported secondary cluster regions depend on where the primary cluster is located.

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 other region requirements, 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), and UK (London).

GDN constraints

  • A GDN supports one primary cluster and up to four secondary clusters.

  • All clusters in a GDN must use the same database engine version: Oracle syntax-compatible 2.0.

  • The node specifications of a secondary cluster must be greater than or equal to those of the primary cluster. For best performance, use matching specifications.

  • A cluster can belong to only one GDN at a time.

Unsupported features

Clusters in a GDN do not support:

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 other parameters, see Custom purchase.

    ParameterDescription
    RegionSelect the region for the secondary cluster. For supported regions, see Supported region pairs.
    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: Oracle syntax-compatible 2.0.
    Compute Node SpecificationsMust match or exceed the primary cluster's specifications. To use higher specifications, upgrade on the cluster details page after creation.
  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 Cluster List section.

    image

Remove a secondary cluster

Removing a secondary cluster detaches it from the GDN and converts it into a standalone PolarDB cluster with full read/write capability. Use this operation when you no longer need cross-region replication for a particular cluster, or when you want to repurpose a secondary cluster independently.

Important

After removal, the cluster cannot be re-added 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 GDN details page.

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

    image

  4. Read the notes in the dialog box and click OK.

The removal takes about 5 minutes. During this time:

  • Endpoints of all clusters in the GDN, including the cluster being removed, remain available.

  • Data synchronization between the removed cluster and the primary cluster continues until removal completes, then stops permanently.

  • After removal, the cluster switches to read/write mode as a standalone cluster.

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

Switch the primary cluster

Switching the primary cluster promotes a secondary cluster to primary. Use this operation for planned maintenance, such as migrating your primary workload to a different region. This is a controlled operation only — unplanned (forced) switchover is not supported.

Before you switch:

Preparation itemDetails
TimingPerform the switch during off-peak hours. The operation causes a transient connection break of approximately 160 seconds.
Application reconnectionMake sure your application has an automatic reconnection mechanism.
Internet endpointIf the original primary cluster has an Internet endpoint, verify that the new primary cluster also has one configured. Otherwise, your application may lose database access. For details, see View or apply for an endpoint.

To switch the primary 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 its Global Database Network ID to open the GDN details page.

  3. In the Cluster List section, find the secondary cluster you want to promote 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 and click OK.

API reference

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

What's next

  • Global Database Network (GDN) — Learn about GDN architecture and common use cases.

  • Connect to a GDN — Learn how to connect to a global database network.

References