Mercurial > hg > nginx-site
changeset 2223:a692df6ef304
Added upstream keepalive_timeout and keepalive_requests.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 22 Aug 2018 12:44:26 +0300 |
parents | 0974dc0a6209 |
children | 0d55b8bddbe9 |
files | xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml |
diffstat | 2 files changed, 61 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml Mon May 07 14:45:49 2018 +0300 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Wed Aug 22 12:44:26 2018 +0300 @@ -10,7 +10,7 @@ <module name="Module ngx_http_upstream_module" link="/en/docs/http/ngx_http_upstream_module.html" lang="en" - rev="73"> + rev="74"> <section id="summary"> @@ -642,6 +642,35 @@ </directive> +<directive name="keepalive_requests"> +<syntax><value>number</value></syntax> +<default>100</default> +<context>upstream</context> +<appeared-in>1.15.3</appeared-in> + +<para> +Sets the maximum number of requests that can be +served through one keep-alive connection. +After the maximum number of requests is made, the connection is closed. +</para> + +</directive> + + +<directive name="keepalive_timeout"> +<syntax><value>timeout</value></syntax> +<default>60s</default> +<context>upstream</context> +<appeared-in>1.15.3</appeared-in> + +<para> +Sets a timeout during which a keep-alive +connection to an upstream server will stay open. +</para> + +</directive> + + <directive name="ntlm"> <syntax/> <default/>
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml Mon May 07 14:45:49 2018 +0300 +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml Wed Aug 22 12:44:26 2018 +0300 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_upstream_module" link="/ru/docs/http/ngx_http_upstream_module.html" lang="ru" - rev="73"> + rev="74"> <section id="summary"> @@ -650,6 +650,36 @@ </directive> +<directive name="keepalive_requests"> +<syntax><value>число</value></syntax> +<default>100</default> +<context>upstream</context> +<appeared-in>1.15.3</appeared-in> + +<para> +Задаёт максимальное число запросов, которые можно +сделать по одному keep-alive соединению. +После того как сделано максимальное число запросов, +соединение закрывается. +</para> + +</directive> + + +<directive name="keepalive_timeout"> +<syntax><value>таймаут</value></syntax> +<default>60s</default> +<context>upstream</context> +<appeared-in>1.15.3</appeared-in> + +<para> +Задаёт таймаут, в течение которого keep-alive +соединение с сервером группы не будет закрыто. +</para> + +</directive> + + <directive name="ntlm"> <syntax/> <default/>