Load balancing

Hi there,

I’ve got a website served with three web servers and a single database server. Currently we’re behind our hosting centre’s large and expensive hardware load balancer.

As we are currently considering switching to another hosting centre, we might get the responsibility for the load balancing ourselves in the future. Therefore, I’m currently researching the different possibilities within load balancing.

I see the following to solutions:

  1. A software based load balancer.
    We buy a new cheap server on which we install apache with mod_proxy_balancer (recommendations on other software are welcome). This server will point to our other web servers. What is the typical bottleneck on a machine like this? Cpu?
  2. Buy a “real” hardware load balancer.
    I consider this the best solution based on what I’ve heard from other people’s experiences. However, this is also a bit more expensive I think. Can you recommend some good brands/models?

What do you think of the above proposed solution? What would you recommend? The more details you can give me the better )

Thanks in advance!

Hi,

I can recommend you using Pfsense: http://pfsense.org/
It is a software router/firewall/balancer based on FreeBSD. It is configured through web interface. We have a wide experience of using Pfsense, and it works fine.

Hi razdaman

I think you can use haproxy for load balancer software or squid with mode reverse.

I was used both haproxy and squid. It’s very good for your problem

Hi razdaman,

you could also give a try to Varnish : http://varnish.projects.linpro.no/.

It does Load Balancing and is a fantastic HTTP accelerator.

Here is a example on how to configure Varnish to do load balancing : http://varnish.projects.linpro.no/wiki/VCLExampleDirector

)

[B]jerome wrote on Thu, 30 April 2009 18:46[/B]
Hi razdaman,

you could also give a try to Varnish : http://varnish.projects.linpro.no/.

It does Load Balancing and is a fantastic HTTP accelerator.

Here is a example on how to configure Varnish to do load balancing : http://varnish.projects.linpro.no/wiki/VCLExampleDirector

)

I won’t recommend it for production yet. Maybe a bit later…