|
We've done several solutions like that this and in several different configurations. Master - Master works best between DC's but it helps to be able to DO HA on the same subnet. if you can, then programatically set the app to use IP1 all the time and if IP1 isn't available to use IP2. Or round robin them in code and make sure to exclude 1 if it's down.
The other option is to use drbd for /var/lib/mysql/ - drbd works flawlessly over the internet or over the lan which means you can have a live mirrored copy of the DB on an offsite server. Again programatically you can connect to the box that isn't giving errors/is available.
Be carefull of both solutions. If you drop a table, it's gone no matter what solution you go for. So in addition to the above always keep regular backups.
__________________
Paul Kelly, Technical Director & Parallels Specialist
Blacknight offer IE and EU Domains, Shared hosting, Reseller Hosting, VPS, DDS, Dedicated, Managed, Colocation out of Dublin from two Tier IV Data Centres.
Services: Plesk / Plesk Expand / Parallels Containers / HSPComplete / Acronis True Image Server/ Plesk Sitebuilder | RIR consultancy, BGP Transit, Wholesale Hosting, Wholesale Domain registration services
|