Load balancing without a load balancer?
- by Tom
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.