I'm kind of lost there, I want to setup a common MASTER/SLAVE
replication on a MariaDB
database. I choose MASTER/SLAVE
over MASTER/MASTER
to avoid complexifying things. The SLAVE
will be used only if the MASTER
server is down.
I've setup MariaDB 10.0.x
, but when I start reading on how to achieve this replication, they introduce Galera, which, if I understand correctly, replaces MariaDB.
What do you use to tell the SLAVE server to take the relay if the MASTER server is down ? Is it handled automatically via the Galera Cluster ?
If possible, I don't want my application to be aware of the slave server : I just want to configure it with the IP of MariaDB MASTER, and if it can't be reached, to use the SLAVE instead. (But I do not want to specify this fallback in the application level)
Thanks