Solved

Linux Load Balancing

Posted on 2014-03-19
5
624 Views
Last Modified: 2014-05-07
What is the best way to load balance LInux servers, web servers, i.e. APache, and databases (MySQL/SQL)?

Thanks
0
Comment
Question by:Jack_son_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 25

Assisted Solution

by:madunix
madunix earned 167 total points
ID: 39941602
You can use Linux Virtual Server (LVS), and Piranha for GUI based configuration and management. Piranha provides high-availability and load balancing services for Red Hat Enterprise Linux. The piranha packages contain various tools to administer and configure the Linux Virtual Server (LVS), as well as the heartbeat and failover components. LVS is a dynamically-adjusted kernel routing mechanism that provides load balancing, primarily for Web and FTP servers.

http://www.redhat.com/products/enterprise-linux-add-ons/load-balancing/
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Load_Balancer_Administration/index.html
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Virtual_Server_Administration/s1-lvs-piranha-service-VSA.html
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 166 total points
ID: 39941611
for apache load balancing i would suggest to use Apache load balancing and for mysql you can use mysql-proxy or better if you go with percona

TY/SA
0
 
LVL 62

Expert Comment

by:gheist
ID: 39956606
For apache a simple DNS load balancing will work fine, all browsers understand that of pne server is down it should try next...
0
 
LVL 47

Accepted Solution

by:
dlethe earned 167 total points
ID: 39977151
It depends on what you mean by load balancing. You have availability,  performance, and price. You can only pick two.

If you want performance, then virtualization will hurt performance all things equal, so you have to throw money at it.  Conversely if you have plenty of iron and need balanced I/O and multiple instances or virtual machines, then LVS is a good way to go ... but you have single points of failure.

Need more details.
0
 
LVL 12

Expert Comment

by:Kent W
ID: 40047850
@gheist - incorrect info.  If a node is down, it will time out.  It will only try the next IP in RR if the client re-submits the request, and it NOT looking at cache.  That requires the TTLs to be set way down.
Much better to use Something like "balance" for linux, haproxy, or Zen LB (separate install, but very good and web interface).
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 158
Linux boot cd to do hardware report on PC? 3 99
cmake and message 1 21
Bitcoin mining - Is it possible? 6 92
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question