Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

You can do it by using nginx: http://nginx.org/en/docs/http/ngx_http_upstream_module.html

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

 
discard

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.