Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if I could load balance 2 nginx proxies with keepalived.

I have already established high availability for 2 proxies in MASTER - BACKUP setup with keepalived. So Failover is working but not enough for me.

I want to load balance those two proxies preferably with keepalived if it is capable doing it. So (while both proxies are up) when a request is made to VIP, send the request to proxy1 or proxy2.

Is it doable by keepalived?
If it is and you know a link I would appreciate that. If not any info would be nice.

Thanks in advance.

share|improve this question
up vote 1 down vote accepted

You can do it by using nginx:

share|improve this answer
I thought about it but then it defeats the purpose of loadbalacing with Keepalived. Then we are adding another layer to the system. I thought there was a way to do it with Keepalived so that Keepalived does HA and Load balancing at same time. – fcukinyahoo Jul 27 '12 at 12:56
any ideas anyone? – fcukinyahoo Jul 31 '12 at 19:36
Nginx could do HA and Load balancing, so you can just use it instead of Keepalived, and do not add another layer. – VBart Jul 31 '12 at 20:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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