WordPress – Load Balancing WordPress Installation on Two Servers

load balancingWordpress

I have to install wordpress (One Blog, one domain, for e.g. mycompany.com/blog) on two servers sharing one database on a different server, these two servers are behind a loadbalancer and the db would be on another server. We are planning this way due to high traffic.

I have done standalone wordpress installations on a single server, on windows 2003, 2008 with IIS6, 7 etc

I am just researching as to how would I implement this.

What would be the steps to achieve this and upon searching I saw some posts regarding the wp-content/uploads directory to be synced at regular intervals ?

your help much appreciated
Thanks for reading


What we did :

a) We have two web servers connected to a san cluster
b) created a blog directory on the san
c) Mapped that blog directory as a virtual directory on both webservers
d) Installed wordpress on any one of them (as the domain and IIS virtual directories is the same for both servers – for e.g. www.abc.com)
e) Database for this blog is located on two MySQL Boxes

as WordPress is sitting on the san, so no conflicts with uploads or anything like that, Blog url is www.abc.com/blog and that's how it is configured on both.

Hope that helps someone !

Best Answer

If those directories need to be identical, could you put them on another server and mount them remotely via NFS?