LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-29-2008, 01:09 AM   #1
prasepretep
LQ Newbie
 
Registered: Jun 2007
Posts: 17

Rep: Reputation: 0
Question Dilemma - how to go about load balancing


Hi all
We run a website that is heavy on traffic and the one dedicated server we own gets really really slow on peak times.
So, we called the provider of our dedicated server and they answered that they do not offer "direct load balancing solutions" yet - they might in the future.
But as we cannot wait any longer, I wanted to ask if any of you server gurus out there have any clue on how to go about setting up a cluster of dedicated servers and if it is at all possible to just order (for example) 5 servers from the provider and setup them in "load balancing fashion".
Sorry for any nonsense written above but I am newbie when server administrating is the issue (we all are - bunch of developers actually), so any help/links would be greatly appreciated.
 
Old 02-29-2008, 03:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You can use a number of systems as open source load balancers under Linux, first up specifically for web traffic check out mod_proxy_balance for apache http://httpd.apache.org/docs/2.2/mod..._balancer.html This would normally be an independent box (or two for resilience) sitting in front of any number of apache boxes in the back. There are more generic tools like lvs http://www.linuxvirtualserver.org/ but the docs there are attrocious... This sort of thing is very simple for static content, if you do have sessions and synamic data and such then that can certainly cloud the issue in terms of real time data replication, but let's cross that if you need to later.
 
Old 02-29-2008, 04:01 AM   #3
prasepretep
LQ Newbie
 
Registered: Jun 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Actually, we do work with sessions (users login to their accounts), so "keeping them intact" is a must I'm afraid
 
Old 02-29-2008, 04:04 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, well remember google is your friend... http://www.johnandcailin.com/blog/jo...ache-mod_proxy

i've not used apache to load balance, personally i'm used to f5 ltm's but they cost six figures...
 
Old 02-29-2008, 04:06 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I don't know whether this helps (much) but you may need to give more details about what your web app is actually doing.

One situation I looked at a couple of years ago had hid the buffers and the developers spent some time fine tuning the database side of things to make performance 'aceptable'. It turned out ('though I didn't get chance to check this) that they were serving a limited set of pages from a database server (theoretically, they could be asked for a massive set; practically, 80++% were 'current data' not 'historic data from some arbitrary date range in this past'). This meant that while they were actually hitting a database server with a large number of time consuming requests, practically all of them were for the same pages.


With this application profile, they only would have needed to use squid in httpd accelerator mode to stop beating the database disk to death....

But the point is, that 'trick' was specific to their dataset and their usage profile and without knowing that you would have been very unlikely to spot that simple trick to get things under control.

You may be able to do something similar, but without knowing more it is completely impossible to say. (Although in your case, it is probable that a different trick would be required, it is still possible that a trick may be able to get you out of your present difficulty with a smaller investment than a fully-fledged load balancing solution...say, maybe, partitioning the load between two machines, or something.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balancing without S/W hellmet Linux - Networking 2 09-28-2006 02:37 AM
How to do load balancing tkt Linux - Networking 0 04-27-2005 01:22 AM
how to do load balancing? yenonn Linux - Networking 2 07-27-2004 09:20 PM
load balancing on rh ntaizi Linux - Software 0 12-17-2003 06:41 AM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration