How to sync Wordpress multisite on multiple servers?

So far we have a Varnish droplet to serve as a load balancer to 2 Nginx droplets. And, we use asw s3 to store all the uploaded media files. Varnish droplet direct all logged in users(wp-admin) to the first Nginx droplet (we call it master droplet). The problem now if we made change to master droplet(for example: code deployment, new sub site registration), it doesn’t sync to the other Nignx droplet.

What is the best way to keep those Nginx in sync?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@kamal - the answer you’re linking to does not cover actual syncing of content between the servers.

@tangrufus - I’d go with lsyncd (or even simpler, rsync on a cron schedule)

Cheers, ~Dave