Re: Upstream Keepalive connection close

2015-02-23 Thread Gona
. 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

Re: Upstream Keepalive connection close

2015-01-15 Thread Gona
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

Upstream Keepalive connection close

2015-01-06 Thread Gona
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

Re: rewrite url in upstream block

2014-07-30 Thread Gona
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

rewrite url in upstream block

2014-06-16 Thread Gona
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 ___