Welcome! Log In Create A New Profile

Advanced

Nginx response with persistence session and backend server failure

Bhuvan Gupta
July 27, 2015 03:12AM
Hello all,

I was reading Nginx documentation
<http://nginx.org/en/docs/http/ngx_http_upstream_module.html?&_ga=1.189051176.2090890265.1437394769#sticky_cookie>
on
persistence session using cookie and below is from documentation

A request that comes from a client not yet bound to a particular server is
passed to the server selected by the configured balancing method. Further
requests with this cookie will be passed to the designated server. *If the
designated server cannot process a request*, *the new server is selected as
if the client has not been bound yet*.

The last line says that

*If the designated server cannot process a request*.

What does it mean to say "the server cannot process a request."

Question 1:
Does it mean the server was down ?
or does it mean server responded with some error code ?
or does it mean that it did not responded in a certain time interval ?
or does it mean that max number of connection limit is reached on that
server ?

Question 2:
Let say there were 3 backend-server and we are using session persistence
using cookie.
Now assume that 2 of the backed server goes down so niginx will route all
request to 3rd server
Now 2 other server came back online, will niginx use the other 2 server to
route the request even if request have the persistence cookie for 3rd
server.


Thanks
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx response with persistence session and backend server failure

Bhuvan Gupta July 27, 2015 03:12AM

Re: Nginx response with persistence session and backend server failure

B.R. July 27, 2015 01:32PM

Re: Nginx response with persistence session and backend server failure

Vladimir Homutov July 27, 2015 02:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready