ApsaraDB PolarDB MySQL-compatible edition allows you to deploy a cluster across multiple zones. Compared with single-zone clusters, multi-zone clusters can enhance disaster recovery capabilities and withstand data center-level faults. This topic describes how to deploy a cluster across multiple zones and change the primary zone.

Prerequisites

  • The region in which the cluster is deployed contains two or more zones.
  • The destination zone has sufficient computing resources.

Multi-zone architecture

When a multi-zone cluster is deployed, data is distributed across zones. Compute nodes must be deployed in the primary zone. PolarDB reserves sufficient resources in a secondary zone to implement a failover if the primary zone fails.

The following figure shows the multi-zone deployment architecture.

Architecture

Establish a multi-zone deployment architecture

By default, if the prerequisites are met, a multi-zone cluster is created. For more information about how to create a cluster, see Purchase a pay-as-you-go cluster and Purchase a subscription cluster.

The existing single-zone clusters are upgraded to multi-zone clusters. The upgrades are automatically performed by migrating data online. This does not affect your services.

Pricing for multi-zone deployment

No additional fee is charged for multi-zone deployment.
Note You can upgrade your current single-zone cluster to a multi-zone cluster for free.

View the zones of a cluster

On the Overview page of the cluster, you can view the value of the Zones parameter for the cluster. Zones