Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Can I read only from a MariaDB database replicated via DRBD?

$
0
0

My idea is to create 2 VMs, add a secondary disk (let's say /dev/sdb) and create a DRBD resource there, to sync across those 2 VMs.

Then I will move the MariaDB data folder here (e.g. /mysqldata mounted on /dev/sdb1) and enjoy block level synchronization.

I'm using Magento, which natively supports query split read/write, by editing the config file (local.xml), and my question is:

In this setup, can I still consider the replicated MariaDB instance on VM #2 like a read only slave and configure Magento to read from it?

My goal is to write on VM #1 and read from VM #2.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>