homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Load Balancer for web server: worth it?

10+ Year Member

Msg#: 3879405 posted 4:36 pm on Mar 26, 2009 (gmt 0)


I have been running an Apache2 site on my dedicated hosting for a few years but it's showing its age. My host now recommends that now that I have high traffic I consider a redundant load balancer (hardware).

This means I would have to maintain 2-3 machines with identical web content. Isn't this a pain? To ftp to three machines everytime? How do people do it -- with scripts?

Secondly, the load balancer is priced by connections per second. I'm thinking 200 per second or 500 per second. But my Apache2 is currently set up as:

KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 300
MinSpareServers 5
MaxSpareServers 12
StartServers 5
MaxClients 250
MaxRequestsPerChild 600

And it works fine. Isn't this a lot more than the load balancer type "200 connections per second"? Or are these two metrics even equivalent? How should I measure how many per-second connections my Apache gets?




WebmasterWorld Senior Member 10+ Year Member

Msg#: 3879405 posted 10:57 pm on Apr 12, 2009 (gmt 0)

Unfortunately I don't have an answer to your question. However I may have some helpful advice based on my experiences.

Do you know if your bottleneck is Apache or is it the database? Often times Apache is waiting on the database, and quite capable of handling more traffic if only the db could keep up.

If this is your situatio, before ramping up to multiples load balanced servers I would look into integrating a caching solution like memcached. It helped my site handle higher loads while sticking with one server. You can also scale out your cache over multiple servers if needed as well. Though so far I'm still on one server. We handle around 5 million pageviews a month. Not huge traffic, but it definitely would push our server to it's limits before we implemented memcached.

Google it up to learn more. It is free and used by many big name sites like Youtube, Facebook, etc.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved