comparison xml/en/docs/http/ngx_http_limit_req_module.xml @ 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 764fbac1b8b4
children 6087d3fa6919
comparison
equal deleted inserted replaced
815:ed29fd8be462 816:c711c50bdcf4
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_limit_req_module" 10 <module name="Module ngx_http_limit_req_module"
11 link="/en/docs/http/ngx_http_limit_req_module.html" 11 link="/en/docs/http/ngx_http_limit_req_module.html"
12 lang="en" 12 lang="en"
13 rev="1"> 13 rev="2">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_limit_req_module</literal> module (0.7.21) allows 18 The <literal>ngx_http_limit_req_module</literal> module (0.7.21) allows
59 <context>server</context> 59 <context>server</context>
60 <context>location</context> 60 <context>location</context>
61 61
62 <para> 62 <para>
63 Sets a shared memory zone 63 Sets a shared memory zone
64 and the maximum allowed burst of requests. 64 and the maximum burst size of requests.
65 If the rate of requests exceeds the rate configured for a zone, 65 If the rate of requests exceeds the rate configured for a zone,
66 request processing is delayed such as that they are processed 66 their processing is delayed such that requests are processed
67 at a defined rate. 67 at a defined rate.
68 Excessive requests are delayed until their number exceeds the 68 Excessive requests are delayed until their number exceeds the
69 defined number of bursts. 69 maximum burst size
70 When exceeded, the request is terminated with an error 70 in which case the request is terminated with an error
71 <http-status code="503" text="Service Temporarily Unavailable"/>. 71 <http-status code="503" text="Service Temporarily Unavailable"/>.
72 By default, the number of bursts is equal to zero. 72 By default, the maximum burst size is equal to zero.
73 For example, the directives 73 For example, the directives
74 <example> 74 <example>
75 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; 75 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
76 76
77 server { 77 server {