Solved

Linux Load Balancing

Posted on 2014-03-19
5
615 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_
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 61

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Auto channel for WiFi (Access Point) 3 76
Codiing Non-Existent Links 4 65
video edge NVR Device Discovery Problem 4 34
wipe a usb using python 5 26
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

912 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now