Mercurial > hg > nginx-site
changeset 816:c711c50bdcf4
limit_req: clarified the description of the burst= parameter.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 16 Jan 2013 14:31:09 +0400 |
parents | ed29fd8be462 |
children | 4fecf0715bbf |
files | xml/en/docs/http/ngx_http_limit_req_module.xml xml/ru/docs/http/ngx_http_limit_req_module.xml |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml Wed Jan 16 14:29:10 2013 +0400 +++ b/xml/en/docs/http/ngx_http_limit_req_module.xml Wed Jan 16 14:31:09 2013 +0400 @@ -10,7 +10,7 @@ <module name="Module ngx_http_limit_req_module" link="/en/docs/http/ngx_http_limit_req_module.html" lang="en" - rev="1"> + rev="2"> <section id="summary"> @@ -61,15 +61,15 @@ <para> Sets a shared memory zone -and the maximum allowed burst of requests. +and the maximum burst size of requests. If the rate of requests exceeds the rate configured for a zone, -request processing is delayed such as that they are processed +their processing is delayed such that requests are processed at a defined rate. Excessive requests are delayed until their number exceeds the -defined number of bursts. -When exceeded, the request is terminated with an error +maximum burst size +in which case the request is terminated with an error <http-status code="503" text="Service Temporarily Unavailable"/>. -By default, the number of bursts is equal to zero. +By default, the maximum burst size is equal to zero. For example, the directives <example> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml Wed Jan 16 14:29:10 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml Wed Jan 16 14:31:09 2013 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_limit_req_module" link="/ru/docs/http/ngx_http_limit_req_module.html" lang="ru" - rev="1"> + rev="2"> <section id="summary"> @@ -61,15 +61,15 @@ <para> Задаёт зону разделяемой памяти (<literal>zone</literal>) -и максимально возможные всплески запросов (<literal>burst</literal>). +и максимальный размер всплеска запросов (<literal>burst</literal>). Если скорость поступления запросов превышает описанную в зоне, то их обработка задерживается так, чтобы запросы обрабатывались с заданной скоростью. Избыточные запросы задерживаются до тех пор, пока их число -не превысит заданное число всплесков. +не превысит максимальный размер всплеска. При превышении запрос завершается с ошибкой <http-status code="503" text="Service Temporarily Unavailable"/>. -По умолчанию число всплесков равно нулю. +По умолчанию максимальный размер всплеска равен нулю. Например, директивы <example> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;