Best solution for real time server replication .

January 19, 2016 4k views
High Availability Load Balancing Backups

Hello !
Sorry if my English is not well .
I read this tutorial https://www.digitalocean.com/community/tutorial_series/load-balancing-wordpress-with-haproxy about setup load balancer . but i have a question .
what will happen if i upload an image to wordpress or install new plugin ?
both servers will update automatically ? i guess the answer is no .
so how can i setup a real time server replication ?
thank you

2 Answers

Yes it will, if you check the topic Synchronize Web Application Files inside the second tutorial you will setup a automatic sync.
So if you follow the complete document from 1-3(4) you will have a good solution for this.

  • Thank you . Is it necessary to all vps's being hosted in same datacenter ?

    • This is recommended but not necessary;

      If you do not have a private networking option, substitute the private IP addresses with your VPSs public IP addresses. Note that using public IP addresses when you are transmitting sensitive data, such as unencrypted database passwords between your application and database servers, is not good practice because that information will travel over the public internet.

      just follow the complete documentation and you will have a proper setup

  • Hi, i just see your post and i was looking for this for weeks. Did i undesteand it clear: If i uplad an image to server1 via load balancer it will replicate iself to server2 and more.. also mysql data?

Hi, I have used "WP REPLICATION LOAD BALANCER FOR HIGH AVAILABILITY" application of GarazLab for my wordpress website replication and load balancing. it has solved asset synchronization problem for my images, js, css, uploads etc. Thanks.

Have another answer? Share your knowledge.