.
Is there a way to set a timeout on keep-alive connections to backend
servers? Or even force close or invalidate the connection cache from code?
Thanks,
Gona
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,255966,256878#msg-256878
___
nginx
Hi Maxim,
Thanks for the response.
So my understanding from this is - the race condition is possible and when
it happens with one server in the upstream block or "proxy_next_upstream"
set to OFF, Nginx will return back an error without retrying. Is this
right?
Thanks,
Gopala
Posted at Nginx For
I have Nginx server configured with couple of backend servers with keepalive
connections enabled.
I am trying to understand what will be the Nginx's behaviour in case the
connection is closed by an upstream server legitimately when Nginx is trying
to send a new request exactly at the same time. In
Any help on this really appreciate.
The request handler is in Lua. It basically breaks a request in to sub
requests, adds a query parameter to each sub request and directs them
through an consistent hash upstream module in C. The upstream configuration,
reads the query parameter and sets it to th
upstream server but I couldn't see a place where to do this. Rewrite rules
are not allowed in upstream block. Is there a better way of doing this?
Thanks,
Gona
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250892,250892#msg-250892
___