Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will Wordpress work with MySQL Master Master replication?

I am looking at creating a high availability Wordpress installation across two servers with a load balancer to distribute the traffic between these servers, I intend to setup a LAMP stack on these two web servers and configure MySQL master master replication to ensure both servers have the same content similar to the setup at https://www.linode.com/docs/websites/cms/high-availability-wordpress

For anyone created a similar setup before, is there anything to watch out for? Will this work without there being differences in the database assuming both nodes are online? If one node goes down will this synchronise with the other master node successfully?

like image 842
Ben Atherton Avatar asked Oct 30 '22 17:10

Ben Atherton


1 Answers

This is a pretty old post, but I've set up exactly this recently.

I do not recommend setting up WordPress with master-master replication. The nodes went out of sync multiple times and resulted in split-brain. We've reverted back to master-slave replication because of the instability of the setup.

like image 188
mavericko Avatar answered Nov 08 '22 06:11

mavericko