Load balancing without a load balancer?

Posted by Tom on Server Fault See other posts from Server Fault or by Tom
Published on 2012-06-07T23:24:06Z Indexed on 2012/06/22 21:18 UTC
Read the original article Hit count: 290

Filed under:
|
|

I have 4 nginx-powered image servers on their own subdomains which users would access at random. I decided to put them all behind a HAProxy load balancer to improve the reliability and to see the traffic statistics from a single location. It seemed like a no-brainer.

Unfortunately, the move was a complete failure as the load balancer's 100mbit port was completely saturated with all requests now going through it.

I was wondering what to do about this - I could get a port upgrade ($$) or return to 4 separate image servers that are randomly accessed. I thought about putting HAProxy on each image server which would in turn route to another image server if that server's nginx service was having trouble.

What would you do? I would like to not have to spend too much additional money.

© Server Fault or respective owner

Related posts about nginx

Related posts about load-balancing