A global database network (GDN) connects PolarDB clusters across multiple regions with synchronized data. Each cluster handles local reads, while writes are forwarded to the primary cluster.
Overview
A GDN consists of one primary cluster and multiple secondary clusters. The primary cluster handles writes; secondary clusters in different regions serve local reads. Low-latency links synchronize data across all clusters, forming a single logical database.
Data synchronization
GDN uses asynchronous physical replication with parallel physical log replay to synchronize data across regions. Replication delay between primary and secondary clusters stays below 2 seconds without impacting primary cluster performance or stability, ensuring eventual consistency across all regions.
Request routing
Each cluster's determines request routing. No application changes are needed — connect to a cluster endpoint and requests route automatically:
-
Write requests (
INSERT,UPDATE,DELETE) and all in-transaction requests are forwarded to the primary node of the primary cluster. -
Read requests route by default to read-only nodes of the local secondary cluster. If is enabled, some reads may also route to the primary cluster's primary node.
Use cases
|
Active geo-redundancy (multi-region deployment) Deploy across multiple regions with GDN's low-latency cross-region synchronization, read/write splitting, and local reads — keeping database access latency below 2 seconds per region.
|
Geo-disaster recovery GDN enables cross-region high availability for improved data security and system uptime. If the primary cluster's data center fails, manually fail over to a secondary cluster. Supported architectures include three data centers across two regions, four across two regions, and six across three regions.
Note
GDN failovers complete within 10 minutes (under 5 minutes in tests). Applications may experience transient connection errors for up to 160 seconds during failover. Perform failovers during off-peak hours and ensure your application has a reconnection mechanism. |
Benefits
-
Cross-region deployment: Extend from a single city to multiple regions without code changes.
-
Cross-region read/write splitting and local reads: Reads are handled by the local secondary cluster; writes are forwarded to the primary cluster.
-
Flexible configuration: Primary and secondary clusters have independent node specifications, whitelists, and parameter settings.
-
Low-latency cross-region synchronization: Asynchronous physical replication and parallel replay keep cross-region replication delay below 2 seconds, reducing read latency for applications outside the primary cluster's region.
Limits
Cluster versions
-
Database engine:
-
Edition: Enterprise Edition
-
: Single zone (with hot standby storage cluster disabled)
Supported regions
GDN is available in more than 10 regions worldwide, including the Chinese mainland, China (Hong Kong), and overseas regions.
|
Primary cluster region |
Secondary cluster region |
|
All regions in the Chinese mainland |
The 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 region in the Chinese mainland. Note
For other region requirements, submit a ticket. |
|
Regions outside the Chinese mainland |
China (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). |
For regions outside the Chinese mainland, sign the Cross-Border Data Transfer Compliance Agreement before creating a secondary cluster.
Feature limits
-
Clusters in a GDN do not support the database and table restoration feature.
Other limits
-
A GDN can consist of one primary cluster and up to four secondary clusters.
-
Primary and secondary clusters must have the same database engine version: .
-
Secondary cluster node specifications must be equal to or greater than the primary cluster's. Keep specifications consistent.
-
A cluster can belong to only one GDN.
Billing
GDN cross-region data transfer is currently free. You pay only the for each PolarDB cluster.
Quick start
-
: Select an cluster as the GDN's primary cluster.
-
: Go to the PolarDB purchase page to add a secondary cluster to the GDN.
NoteOnly new secondary clusters can be created. Existing clusters cannot be added.
-
: Each cluster has an independent endpoint. Connect to the nearest endpoint based on your application's region.