Gazelle
Gazelle

Reputation: 21

MariaDB Galera Cluster Or standard replication

My question is simple :

I try to install MariaDB Galera Cluster but is there a real advantage ?

In fact, I would like to know what kind of replication I have to use for MariaDB between both server for my use :

And why ?

Thank you.

[EDIT]

If I install MariaDB Galera Cluster, I have 2 solutions :

What is the best way ?

Upvotes: 1

Views: 2421

Answers (1)

Rick James
Rick James

Reputation: 142528

M-M and M-S do not necessarily recover the database servers after various kinds of crashes. Galera does.

Your IP failover probably does fine for re-establishing a connection to a database server.

Galera needs 3 nodes (or 2 plus a lightweight "garbd") to avoid the "split-brain" situation that is a show stopper for standard replication.

Read up on those things, then see if you have a deeper question.

[EDIT]

If you have two Galera nodes on a single physical server, and that server goes down, Galera will assume "split brain: and the third Galera Node will stop accepting writes until you manually intervene.

A 4-node Galera Cluster needs to be tuned correctly, else if two nodes go down, it will similarly assume split brain. The trick is to weight some nodes more than others, thereby surviving some 2-node crashes.

More Galera tips, but mostly aimed at developers and DBAs.

Upvotes: 1

Related Questions