What is MariaDB Galera Cluster?

You are viewing an old version of this article. View the current version here.

The most recent release of MariaDB 10.1 is:
MariaDB 10.1.48 Stable (GA) Download Now

About

MariaDB Galera Cluster is a synchronous multi-master cluster for MariaDB. It is available on Linux only, and only supports the XtraDB/InnoDB storage engines (although there is experimental support for MyISAM - see the wsrep_replicate_myisam system variable).

Starting with MariaDB 10.1, the wsrep API for Galera Cluster is included by default. This is available as a separate download for MariaDB 10.0 and MariaDB 5.5.

Features

  • Synchronous replication
  • Active-active multi-master topology
  • Read and write to any cluster node
  • Automatic membership control, failed nodes drop from the cluster
  • Automatic node joining
  • True parallel replication, on row level
  • Direct client connections, native MariaDB look & feel

Benefits

The above features yield several benefits for a DBMS clustering solution, including:

  • No slave lag
  • No lost transactions
  • Both read and write scalability
  • Smaller client latencies

The Getting Started with MariaDB Galera Cluster page has instructions on how to get up and running with MariaDB Galera Cluster.

A great resource for Galera users is Codership on Google Groups (codership-team 'at' googlegroups (dot) com) - If you use Galera it is recommended you subscribe.

Technology

MariaDB Galera Cluster uses the Galera library for the replication implementation. To interface with Galera replication, we have enhanced MariaDB to support the replication API definition in the wsrep API project.

The implementation of the replication API in MariaDB happens in the open source MySQL-wsrep project.

Galera wsrep provider versions

The following table lists each version of the Galera 4 wsrep provider, and it lists which version of MariaDB each one was first released in. If you would like to install Galera 4 using yum, apt, or zypper, then the package is called galera-4.

The following table lists each version of the Galera 3 wsrep provider, and it lists which version of MariaDB each one was first released in. If you would like to install Galera 3 using yum, apt, or zypper, then the package is called galera.

Galera VersionReleased in MariaDB Version
25.3.37MariaDB 10.3.36
25.3.35MariaDB 10.3.33, MariaDB 10.2.42
25.3.34MariaDB 10.3.31, MariaDB 10.2.40
25.3.33MariaDB 10.3.29, MariaDB 10.2.38
25.3.32MariaDB 10.3.28, MariaDB 10.2.37
25.3.31MariaDB 10.3.26, MariaDB 10.2.35, MariaDB 10.1.48
25.3.30MariaDB 10.3.25, MariaDB 10.2.34, MariaDB 10.1.47
25.3.29MariaDB 10.3.23, MariaDB 10.2.32, MariaDB 10.1.45
25.3.28MariaDB 10.3.19, MariaDB 10.2.28, MariaDB 10.1.42
25.3.27MariaDB 10.3.18, MariaDB 10.2.27
25.3.26MariaDB 10.3.14, MariaDB 10.2.23, MariaDB 10.1.39
25.3.25MariaDB 10.3.12, MariaDB 10.2.20, MariaDB 10.1.38, MariaDB Galera Cluster 10.0.38, MariaDB Galera Cluster 5.5.63
25.3.24MariaDB 10.4.0, MariaDB 10.3.10, MariaDB 10.2.18, MariaDB 10.1.37, MariaDB Galera Cluster 10.0.37, MariaDB Galera Cluster 5.5.62
25.3.23MariaDB 10.3.5, MariaDB 10.2.13, MariaDB 10.1.32, MariaDB Galera Cluster 10.0.35, MariaDB Galera Cluster 5.5.60
25.3.22MariaDB 10.3.3, MariaDB 10.2.11, MariaDB 10.1.29, MariaDB Galera Cluster 10.0.33, MariaDB Galera Cluster 5.5.59
25.3.21N/A
25.3.20MariaDB 10.3.1, MariaDB 10.2.6, MariaDB 10.1.23, MariaDB Galera Cluster 10.0.31, MariaDB Galera Cluster 5.5.56
25.3.19MariaDB 10.3.0, MariaDB 10.2.3, MariaDB 10.1.20, MariaDB Galera Cluster 10.0.29, MariaDB Galera Cluster 5.5.54
25.3.18MariaDB 10.2.2, MariaDB 10.1.18, MariaDB Galera Cluster 10.0.28, MariaDB Galera Cluster 5.5.53
25.3.17MariaDB 10.1.17, MariaDB Galera Cluster 10.0.27, MariaDB Galera Cluster 5.5.51
25.3.16N/A
25.3.15MariaDB 10.2.0, MariaDB 10.1.13, MariaDB Galera Cluster 10.0.25, MariaDB Galera Cluster 5.5.49
25.3.14MariaDB 10.1.12, MariaDB Galera Cluster 10.0.24, MariaDB Galera Cluster 5.5.48
25.3.12MariaDB 10.1.11
25.3.11N/A
25.3.10N/A
25.3.9MariaDB 10.1.3, MariaDB Galera Cluster 10.0.17, MariaDB Galera Cluster 5.5.42
25.3.8N/A
25.3.7N/A
25.3.6N/A
25.3.5MariaDB 10.1.1, MariaDB Galera Cluster 10.0.10, MariaDB Galera Cluster 5.5.37
25.3.4N/A
25.3.3N/A
25.3.2MariaDB Galera Cluster 10.0.7, MariaDB Galera Cluster 5.5.35

The following table lists each version of the Galera 2 wsrep provider, and it lists which version of MariaDB each one was first released in.

Galera VersionReleased in MariaDB Galera Cluster Version
25.2.910.0.10, 5.5.37
25.2.810.0.7, 5.5.35
23.2.75.5.34

For convenience, a galera package containing the preferred wsrep provider is included in the MariaDB YUM and APT repositories (the preferred versions are bolded in the table above).

See also Deciphering Galera Version Numbers.

See also

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.