A global database network (GDN) consists of multiple PolarDB clusters that are deployed in multiple regions across the globe. Data is replicated across all clusters in each GDN. This allows applications that are deployed across different regions to access a database that is local to their region, which provides reliable access with low latency. This topic describes how to create and release a GDN.

Prerequisites

A primary PolarDB cluster is created. For more information, see Purchase a pay-as-you-go cluster and Purchase a subscription cluster.

Limits

  • A cluster in a GDN must use one of the following versions:
    • A PolarDB for MySQL 8.0 cluster
    • A PolarDB for MySQL 5.7 cluster whose engine minor version is 5.7.1.0.13 or later
    • A PolarDB for MySQL 5.6 cluster whose engine minor version is 5.6.1.0.27 or later
  • The primary cluster and secondary clusters must have the same database engine version, that is MySQL 8.0, MySQL 5.7, or MySQL 5.6.
  • A GDN consists of a single primary cluster and up to four secondary clusters. Multiple clusters can be deployed within the same zone of a region.
    Note To add more secondary clusters, Submit a ticket to contact technical support.
  • A cluster belongs to only one GDN.
  • Clusters in the GDN do not support specifications of 2 cores and 4 GB of memory or 2 cores and 8 GB of memory.
  • Clusters in the GDN do not support the database and table restoration feature.

Billing

You are not charged for the traffic that is generated during cross-region data transmission within a GDN. You are charged only for the use of PolarDB clusters in the GDN. For more information about the pricing rules of PolarDB clusters, see Billable items.

Create a GDN

  1. Log on to the PolarDB console.
  2. In the left-side navigation pane, click Global Database Network.
  3. On the Global Database Network page, click Create GDN.
    1
  4. In the Create GDN dialog box, specify the following parameters.
    Parameter Description
    Name The name of the GDN that you want to create. We recommend that you set a descriptive name that makes it easy to identify. GDN names do not have to be unique.
    Primary Region The region where the primary cluster is deployed.
    Note Select the region where the primary cluster is deployed.
    Primary Cluster Select an existing cluster as the primary cluster of the GDN.
  5. After you specify the preceding parameters, click OK.
    Note After you create a GDN, you can add secondary clusters. For more information, see Add and remove secondary clusters.

Release a GDN

  1. Log on to the PolarDB console.
  2. In the left-side navigation pane, click Global Database Network.
  3. Find the GDN that you want to release and click Delete in the Actions column.
    Notice
    • A GDN can be released if it contains only the primary cluster.
    • A GDN cannot be restored after it is released. Proceed with caution.
    • Applications that are connected to the endpoints of a GDN cannot access databases after the GDN is released. Modify the application code to change the connection string of the GDN at your earliest opportunity.
  4. In the Delete GDN dialog box, click OK.

FAQ

  • How many GDNs can I create for an Alibaba Cloud account?

    The number of GDNs that you can create is unlimited.

  • After a GDN is created, can I change the primary cluster of the GDN?
    No, you cannot change the primary cluster after the GDN is created. You can create another GDN, select the required cluster as the primary cluster, and then release the current GDN.
    Note Before you release the GDN, remove all secondary clusters from the GDN.