From 02ce6c415f07ea8d7fa6b59a17ee2f02e77ab66b Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 12 Sep 2014 18:50:47 +0400 Subject: Upstream: limited next_upstream time and tries (ticket #544). The new directives {proxy,fastcgi,scgi,uwsgi,memcached}_next_upstream_tries and {proxy,fastcgi,scgi,uwsgi,memcached}_next_upstream_timeout limit the number of upstreams tried and the maximum time spent for these tries when searching for a valid upstream. --- src/http/ngx_http_upstream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http/ngx_http_upstream.h') diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index dafb5a319..2ee899d83 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -136,6 +136,7 @@ typedef struct { ngx_msec_t send_timeout; ngx_msec_t read_timeout; ngx_msec_t timeout; + ngx_msec_t next_upstream_timeout; size_t send_lowat; size_t buffer_size; @@ -153,6 +154,7 @@ typedef struct { ngx_uint_t ignore_headers; ngx_uint_t next_upstream; ngx_uint_t store_access; + ngx_uint_t next_upstream_tries; ngx_flag_t buffering; ngx_flag_t pass_request_headers; ngx_flag_t pass_request_body; -- cgit