Multi-Region Cluster

MariaDB Multi-Region Cluster

MariaDB Multi-Region Cluster is a pre-packaged solution that automatically creates an advanced, highly available database cluster across multiple platform regions using platform-managed stack templates.

Database Cluster Topology

The MariaDB multi-region solution is based on a Primary-Primary topology with asynchronous replication. This design reduces the effect of inter-region latency on transaction commits and is intended for deployments where data centers are significantly separated geographically.

MariaDB multi-region cluster topology
MariaDB multi-region topology with Primary and Secondary database nodes across regions.

One or more Secondary nodes can be added for cross-region disaster recovery. On a platform with three regions, the documented recommended topology is:

Region 1Primary database server
Region 2Primary database server
Region 3Secondary database server for disaster recovery

Every database server or load-balancer node in the cluster topology is created in a separate environment. A ProxySQL load-balancer layer is placed in front of the database cluster to distribute requests between Primary servers. The separate environments are then combined into the multi-region cluster.

High Availability and Failover

The package provides out-of-the-box high availability and failover at the data-center level.

One Primary region unavailableThe cluster remains available and continues handling both Read and Write requests through the remaining Primary region.
Both Primary regions unavailableThe Secondary database can be used for Read and Write requests without data loss.
Application-side changeIf both Primary regions are unavailable, update the database client entry point by replacing the ProxySQL hostname with the Secondary database server hostname.
!

Secondary failover entry point

Using the Secondary database when both Primary regions are down requires an update to the application database connection setting. The Secondary node hostname or IP address becomes the temporary entry point.

Cluster Installation

1

Find the package in Marketplace

Open the platform Marketplace and locate MariaDB Multi-Region Cluster in the Clusters section or through the Search field.

MariaDB Multi-Region Cluster in Marketplace
Find the MariaDB Multi-Region Cluster package in Marketplace.
2

Configure the installation

In the installation window, specify the required cluster settings:

  • Regions: choose the platform regions where the cluster environments should be deployed. Region order is important: the first two regions receive Primary servers and the remaining regions receive Secondary servers.
  • Database version: select the required MariaDB version.
  • Environment: provide a name used to isolate and group the cluster environments.
  • Display Name: provide a custom display name for the cluster environments.

Click Install when the configuration is ready.

Install MariaDB Multi-Region Cluster
Select the regions, MariaDB version, environment group, and display name.

Region order matters

The first two selected regions become the Primary database regions. Any additional selected regions are deployed as Secondary database regions.

3

Wait for installation

The installation can take several minutes. When it completes, the platform shows a success window and sends emails containing the cluster entry-point details and access credentials.

To view all cluster-related environments together, switch to the environment group specified during installation.

MariaDB cluster environment group
Use the configured environment group to view all MariaDB multi-region cluster environments together.

Cluster Entry Points and Access

The multi-region cluster entry point contains two items, one for each Primary server. Each link includes the cluster name and its ProxySQL hostname.

MariaDB multi-region cluster environments
Each Primary region provides a ProxySQL-based cluster entry point.

If both Primary regions become unavailable, use the hostname or IP address of the Secondary database node as the application database entry point.

Expected Result

A MariaDB database cluster is deployed across multiple platform regions with two Primary servers using asynchronous replication, optional Secondary servers for disaster recovery, and ProxySQL layers that distribute application requests between the Primary regions.

Important Notes

  • The multi-region solution is based on Primary-Primary asynchronous replication.
  • The first two regions selected during installation become Primary regions.
  • Additional regions become Secondary database regions.
  • Each database server and load-balancer node is deployed in a separate environment.
  • ProxySQL is placed in front of the Primary database servers to distribute requests.
  • The cluster entry point contains one ProxySQL-based item for each Primary region.
  • If both Primary regions fail, the application connection setting must be changed to the Secondary database hostname or IP.