Forum: NGINX cookie and first load balancing

Posted by KT Walrus (Guest)
on 2013-01-15 00:26
(Received via mailing list)
The only reason I need haproxy in my software stack is for "cookie 
persistence" and "first" load balancing. I'd like to use nginx instead.

Can I do the equivalent of haproxy "cookie persistence" in nginx by 
testing if the request has a cookie set and then testing this cookie's 
value to decide which upstream to use?  Seems possible to me.

As for haproxy's "first" load balancing, is there a variable in nginx 
that I can test for a given server which yields the current number of 
active connections that nginx has with that server?  I haven't found any 
such variable in nginx's documentation.

Kevin
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.