What is MariaDB Galera Cluster?
The most recent release of MariaDB 10.1 is:
MariaDB 10.1.48 Stable (GA) Download Now
The most recent MariaDB Galera Cluster 10.0 release is:
MariaDB Galera Cluster 10.0.38 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
.
Galera Version | Released in MariaDB Version |
---|---|
26.4.16 | 11.2.2, 11.1.3, 11.0.4, 10.11.6, 10.10.7, 10.6.16, 10.5.23, 10.4.32 |
26.4.14 | 10.10.3, 10.9.5, 10.8.7, 10.7.8, 10.6.12, 10.5.19, 10.4.28 |
26.4.13 | 10.10.2, 10.9.4, 10.8.6, 10.7.7, 10.6.11, 10.5.18, 10.4.27 |
26.4.12 | 10.10.1, 10.9.2, 10.8.4, 10.7.5, 10.6.9, 10.5.17, 10.4.26 |
26.4.11 | 10.8.1, 10.7.2, 10.6.6, 10.5.14, 10.4.22 |
26.4.9 | 10.6.4, 10.5.12, 10.4.21 |
26.4.8 | 10.6.1, 10.5.10, 10.4.19 |
26.4.7 | 10.5.9, 10.4.18 |
26.4.6 | 10.5.7, 10.4.16 |
26.4.5 | 10.5.4, 10.4.14 |
26.4.4 | 10.5.1, 10.4.13 |
26.4.3 | 10.5.0, 10.4.9 |
26.4.2 | 10.4.4 |
26.4.1 | 10.4.3 |
26.4.0 | 10.4.2 |
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
.
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 Version | Released in MariaDB Galera Cluster Version |
---|---|
25.2.9 | 10.0.10, 5.5.37 |
25.2.8 | 10.0.7, 5.5.35 |
23.2.7 | 5.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
- Codership on Google Groups (
codership-team 'at' googlegroups (dot) com
) - A great mailing list for Galera users. - About Galera Replication
- Codership: Using Galera Cluster
- Galera Use Cases
- Getting Started with MariaDB Galera Cluster