I want to setup a loadbalancer with 2 machines. The loadbalancer should reside on one machine and split load between itself and other machine (with a greater percentage of request hitting other machine). There is no issue of cookie and session, since every request is independent. Also I have given my client an IP address (something like http://99.99.9.9/aaa.php ) not a domain name so I want the request coming to that IP to be load balanced. Both my machines are VPS residing on linode. How do I configure apache mod proxy balancer(if its possible that way)?

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

HAProxy is great, I've used this quite a bit: http://haproxy.1wt.eu/

Pound is another one: http://linux.die.net/man/8/pound

I now use Zeus (With Joyent) and can't recommend it enough: http://www.zeus.com/products/load-balancer/index.html

As for mod_proxy, I wouldn't recommend it. But here is a tutorial if you'd still like to pursue it: http://wiki.apache.org/cocoon/LoadBalancingWithModProxy

link|improve this answer
thnx...how do i configure it to split load between self and another machine? – Ashwin Dec 7 '10 at 15:52
Each of those load balancers listed has documentation on that. The link I posted for mod_proxy also tells you how to do it. – Mike Dec 7 '10 at 19:53
thanks a lot :) used Haproxy... – Ashwin Dec 8 '10 at 8:16
1 more thing how do I make it run on startup? – Ashwin Dec 9 '10 at 8:01
feedback

I cannot speak for mod proxy balancer, but Linux Virtual Server will do everything you have asked for above.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.