[buug] hardware load balancing vs software
John de la Garza
john at jjdev.com
Sat Aug 28 07:33:47 PDT 2004
I'm not asking if we should use tomcat or apache
Im asking if we should use a hardware loadbalancer or apache to load
apache will be used regardless
On Aug 27, 2004, at 10:21 PM, Stefan Lasiewski wrote:
> --- johnd <john at jjdev.com> wrote:
>> at my company we have a 'web-switch'
>> for one example...traffic comes in and it balances bewteen two
>> apache servers
>> each apache load balances across 4 tomcat servers...
>> Wouldn't it be better to just have the webswitch do all the load
> What is the goal? Simplicity or speed? Removing the Apaches will
> simplify the network, but then you will lose the power of Apache and
> dump more processing on Tomcat, which might slow everything down.
> Also, the webswitch will do the load balancing regardless if it's
> talking to
> Apache or Tomcat, right?
> In most networks, Apache really doesn't add much to the latency. The
> load-balancing algorithm is pretty simple-- I think the module polls
> Tomcats once per minute or if there is a timeout.
>> either by going straight to the tomcats (we proxy %100 of the traffic)
> Plenty of people run their sites directly off tomcat, but I'm not sure
> if the
> HTTP engine within Tomcat is intended to be an efficient HTTP server.
> are you sure you want Tomcat to handle the images and flat html files?
> often more efficient to let Apache handle the static content and let
> deal with the dynamic JSPs.
>> or if we need apache, to have 8 instances of apache..or a multiple of
>> running virtual hosts?
>> maybe two apache servers for redundancy each one running 4 virt hosts
>> basically what I'm curious about is if we have a hardware loadbalancer
>> do we need to do more software loadbalancing?
> If you have two or more Tomcats you would still need a way to evenly
> distribute the requests, so software loadbalancing would still be
> between the Apache & Tomcat.
> 'The art, or rather the knack
> of flying is learning to throw
> yourself to the ground and miss.'
> -Douglas Adams, THGTTG
More information about the buug