Best-effort sticky sessions
Piotr Sikora
piotr.sikora at frickle.com
Mon Feb 22 19:15:15 MSK 2010
Hi Grzegorz,
> upstream up1 {
> server sv1:9000;
> server sv1:9000; # try again (and possibly again...)
> server sv2:9000; # and finally fail over to the other server
> }
Unless I've missed something, this should work for your use-case:
upstream up1 {
server sv1:9000 max_fails=3;
server sv2:9000 backup;
}
Best regards,
Piotr Sikora < piotr.sikora at frickle.com >
More information about the nginx
mailing list