Load balancing with two servers using Joomla?

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
maestroc
Joomla! Explorer
Joomla! Explorer
Posts: 449
Joined: Sun Dec 04, 2005 7:27 pm
Contact:

Load balancing with two servers using Joomla?

Post by maestroc » Sun Mar 24, 2019 10:41 pm

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.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Load balancing with two servers using Joomla?

Post by Webdongle » Sun Mar 24, 2019 11:38 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

maestroc
Joomla! Explorer
Joomla! Explorer
Posts: 449
Joined: Sun Dec 04, 2005 7:27 pm
Contact:

Re: Load balancing with two servers using Joomla?

Post by maestroc » 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.

gws
Joomla! Champion
Joomla! Champion
Posts: 5938
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Load balancing with two servers using Joomla?

Post by gws » Mon Mar 25, 2019 8:38 am


User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Load balancing with two servers using Joomla?

Post by Webdongle » Mon Mar 25, 2019 9:51 am

If you will not be changing the site then make a copy of the site ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17431
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Load balancing with two servers using Joomla?

Post by toivo » Mon Mar 25, 2019 11:00 am

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
Toivo Talikka, Global Moderator

User avatar
darb
Joomla! Hero
Joomla! Hero
Posts: 2042
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden

Re: Load balancing with two servers using Joomla?

Post by darb » Mon Apr 01, 2019 10:28 am

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..?


Locked

Return to “Performance - Joomla! 3.x”