Question

Best solution for real time server replication .

Posted January 19, 2016 4.4k views
Backups Load Balancing High Availability

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

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.

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.

Submit an Answer