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.