Page 1 of 1

Load balancing with two servers using Joomla?

Posted: Sun Mar 24, 2019 10:41 pm
by maestroc
We have a site that has grown to the point that we want to serve it from two geographic locations plus have the added benefit of failover in case one of the two servers goes down. Our DNS is through Cloudflare and I know they offer a load balancing plan but what I don't know/understand is how this would work with a Joomla site.

Since the database and files all have to be kept in sync how do we do this kind of setup? I'd be grateful for any help or suggestions on this.

Re: Load balancing with two servers using Joomla?

Posted: Sun Mar 24, 2019 11:38 pm
by Webdongle

Re: Load balancing with two servers using Joomla?

Posted: Mon Mar 25, 2019 1:29 am
by maestroc
Thank you, but that isn't what I am talking about. I don't want to run two different sites from one Joomla installation. I want to run one Joomla installation from two different servers simultaneously to increase performance and provide a failover backup if one of the two servers goes down temporarily.

Re: Load balancing with two servers using Joomla?

Posted: Mon Mar 25, 2019 8:38 am
by gws

Re: Load balancing with two servers using Joomla?

Posted: Mon Mar 25, 2019 9:51 am
by Webdongle
If you will not be changing the site then make a copy of the site ?

Re: Load balancing with two servers using Joomla?

Posted: Mon Mar 25, 2019 11:00 am
by toivo
There are High Availability (HA) solutions based on Apache's proxy balancer module or Nginx, combined with a HA MySQL proxy cluster, for example Galera:
https://www.nginx.com/blog/mysql-high-a ... a-cluster/
https://severalnines.com/resources/tuto ... y-tutorial

Re: Load balancing with two servers using Joomla?

Posted: Mon Apr 01, 2019 10:28 am
by darb
maestroc wrote:
Mon Mar 25, 2019 1:29 am
Thank you, but that isn't what I am talking about. I don't want to run two different sites from one Joomla installation. I want to run one Joomla installation from two different servers simultaneously to increase performance and provide a failover backup if one of the two servers goes down temporarily.
didnt you say ? " Since the database and files all have to be kept in sync how do we do this kind of setup? "

How would you do that if you dont have a multisite syncronisation set up ? you still need loadbalancing, failover etc for the server side but your Joomla instance must know how to update/sync the data between the two sites or..?