Welcome! Log In Create A New Profile

Advanced

cookie and first load balancing

January 14, 2013 06:26PM
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
Subject Author Posted

cookie and first load balancing

ktwalrus January 14, 2013 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready