Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

cookie and first load balancing (no replies)

$
0
0
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



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>