Configuring MariaDB Galera Cluster

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

A number of options need to be set in order for Galera Cluster to work when using MariaDB. These should be set in the MariaDB option file.

Mandatory Options

Several options are mandatory, which means that they *must* be set in order for Galera Cluster to be enabled or to work properly with MariaDB. The mandatory options are:

These are optional optimizations that can be made to improve performance.

  • innodb_flush_log_at_trx_commit=0 — This is not usually recommended in the case of standard MariaDB. However, it is a bit safer with Galera Cluster, since inconsistencies can always be fixed by recovering from another node.

Replication Filters

When using Galera Cluster, replication filters should be used with caution because they may not work as you'd expect.

The following replication filters are honored for InnoDB DML, but not DDL:

The following replication filters are honored for InnoDB DML and DDL:

However, it should be kept in mind that if replication filters cause inconsistencies that lead to replication errors, then nodes may abort.

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.