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.
Post Reply
maestroc
Joomla! Explorer
Joomla! Explorer
Posts: 377
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: 37142
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
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

maestroc
Joomla! Explorer
Joomla! Explorer
Posts: 377
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! Virtuoso
Joomla! Virtuoso
Posts: 3808
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: 37142
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
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11118
Joined: Thu Feb 15, 2007 5:48 am
Location: Oxford, UK

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
troubleshooting smtp and other articles http://talikka.com/joomla

User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1348
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

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..?
Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!

Darb - aka ssnobben


Post Reply

Return to “Performance - Joomla! 3.x”