WordPress.org

Ready to get started?Download WordPress

Forums

Load balancing 3 front ends, how to sync data/content (4 posts)

  1. 5mall5nail5
    Member
    Posted 6 months ago #

    Hi all,

    I have a cluster of Raspberry Pi's and BeagleBone Blacks load balancing my website using nginx. The LB works perfectly well. Problem is, if I log into http://www.beagle-pi.com/wp-admin and add a new post and upload an image to it, only the node that I've landed on is going to get that image. I have a couple options in my mind:

    1) Setup the load balancer to not load balance http://www.beagle-pi.com/wp-admin requests and land on one node all the time for that URL. I can then make posts/upload content from there and run a scheduled rsync task to push out the changes from /var/www/html/wp-content/uploads/... to the other nodes. Problem with this is that the content will be out of sync until that task completes. So, I either need to schedule the task frequently or deal with content issues.

    2) Glusterfs - I tried to run a gluster clustered file system. It worked well, but the Raspi's are too slow to utilize it and it made loading sites a bit slow.

    3) NFS share as the content location that all web front ends load from. Tried this, and again, now the hops for http://www.beagle-pi.com are firewall, load balancer, node, NAS, and back out. Its a bit lame.

    Any thoughts on how to sync content between load balanced front end servers? MySQL is running on another cluster and does not slow down this processes since it is off-loaded. Are there any plugins within WordPress that detect new content and copy out?

    Thanks guys!

  2. blueprintmarketing
    Member
    Posted 1 month ago #

    Are you looking for a way to do this on a specific hosting company for type of server? I am able to synchronize my servers over multiple hosting companies some without even SSHit's quick and will not affect the speed of your server and will load balancer use the weight on one server as the other updates. Do you want to only use a single login for WP admin feel to contact me at [redacted]
    Tom

  3. WPyogi
    Forum Moderator
    Posted 1 month ago #

    @blueprintmarketing - if you want to help out here, great, but please don't ask people to contact you off the forums or look for work here - that's really not how these forums work:

    http://codex.wordpress.org/Forum_Welcome#Helping_Out

  4. Option #1 would be the best, I think, based on anecdotal comments over beers that I've heard over the years.

    I can then make posts/upload content from there and run a scheduled rsync task to push out the changes from /var/www/html/wp-content/uploads/... to the other nodes.

    Would that be something you could trigger? I know with cache plugins, we can run a HTTP API call - http://codex.wordpress.org/HTTP_API - and tell it things similar to a CURL. Then you could just make a plugin to force the task to run on the server.

Reply

You must log in to post.

About this Topic