• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1285
  • Last Modified:

Load Balance Wordpress

I'm looking at implementing Wordpress over 2 load balanced servers that are already setup and in use. The database will be on another server so in theory all will be well with one exception.
Files uploaded (blogs, downloads etc) will only get placed on the node that is used to render the site and as such will need syncing across to the other server. Whilst i could just have this run as a scheduled task and have it nearly always synced I'd rather look at a more elegant solution of creating a database trigger of some kind to run the sync process when a new post is added into the DB, if possible when the newly entered row has reference to an upload.

I need some help with this trigger though; not sure whether to use XCOPY or a third party app like Second Copy or SyncBack so could so with a working example of a trigger using one of these methods preferably.
  • 2
1 Solution
It sounds like you're running Windows. How about having a look at DFS and perhaps put the upload directory on a DFS Share. Your can read more about DFS here http://technet.microsoft.com/en-us/library/cc753479.aspx 
pixelcellarAuthor Commented:

It is a Windows platform we are running on so i will have a look into the viability of this now. Hadn't really thought about that; just thought of a potential programmatical solution.
pixelcellarAuthor Commented:
DFS turned out to be far more efficient than any automated copying process monitoring a folder structure so  I went with that in the end. Obviously you need to install and configure it but was not hard.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now