LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-12-2010, 05:03 AM   #1
yucefrizk
Member
 
Registered: Nov 2009
Posts: 44

Rep: Reputation: 18
Best solution for traffic Load Balance without additional hardware


Hi All,

I have two Red Hat entreprise Linux 5 servers running the same applications, my goal is to load balance the incoming traffic between these two servers without adding an additional hardware as load balancer, the incoming traffic is basically Web traffic and on the servers, Apache and PHP are running.

Red Hat solutions that I found are:

1- LVS
2- Piranha
3- Red Hat cluster suite.

Can LVS run on one of the real servers (or both servers, for redundancy issues) and load balance the traffic between its server and the other one? If yes, will LVS has a big impact on the CPU/memory usage? How can I estimate this usage if I know how much traffic is coming and the HW specs?

Same questions for Piranha.

Can I install Red Hat cluster suite on these two servers, and configure it in a way that the virtual IP is on different server for different request (taking in consideration that the same session will be always served by the same server)?


Finally, is there any other/better solution that can fit my requirements to load balance the traffic without additional hardware?

Thanks
 
Old 03-12-2010, 10:27 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
The first thing you really need to do is assess exactly where your bottlenecks lie. You need to establish performance baselines for all aspects of your system. Lest you find a "solution" to something that isn't even a problem ... and lest you *fail* to find a good solution to *genuine* issues. Your first step is absolutely a good baseline.

Your *second* step is to decide whether the primary goal is "performance" (best overall throughput), "capacity" (if general performance is OK, but you need a solution that addresses peak loads), or "redundancy" (your main goal is to make sure you stay on-line if one or more software and/or hardware components fail).

A great deal of homework needs to be done before you can even *begin* to consider "solutions". Your post gives very little idea of how much of this homework you've done.

There's tons of material on the web, many fine products ... and, yes, many fine open-source solutions. Starting, for example, with the ubiquitous "squid". Once you decide where you need to go ... you've got lots of options for how to get there.

'Hope that helps .. PSM
 
Old 03-13-2010, 06:44 AM   #3
yucefrizk
Member
 
Registered: Nov 2009
Posts: 44

Original Poster
Rep: Reputation: 18
Hi Paul,

Thanks for your reply! In fact I've checked "squid", it's a cache server more than a load balancer, I'll give more info about my applications and my concern:

1- Applications are based on PHP pages that query an Oracle DB and return results (No need to worry about the data of the DB, it will be replicated on both servers.) Cache servers will not be a good idea for me since data in the DB changes frequently.
2- I'm concerned about load balancing the HTTP traffic when both servers are alive, but also I have to keep the virtual IP alive if one server goes down; since I have two servers and same applications on both of them, I will care about redundancy also.


Hope this will clarify my query and my homeworks

Still any clue about the applications listed previously (LVS, Piranha, RH Cluster suite) will be appreciated.

Last edited by yucefrizk; 03-13-2010 at 03:15 PM.
 
  


Reply

Tags
balancer, load


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 Balance please Linux - Networking 4 10-28-2008 12:26 AM
squid load balance ghabsh Linux - Server 1 03-24-2007 02:45 AM
load balance problem c2220333 Linux - Kernel 0 01-30-2007 10:55 PM
Traffic shaping and balance gepas Linux - Networking 9 01-06-2007 08:07 PM
Internet load Balance serabut Linux - Networking 1 07-31-2006 02:56 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration