comparison xml/en/docs/http/ngx_http_limit_req_module.xml @ 2014:6e66487c5756

Limit_req: document what happens on zone exhaustion (ticket #1133)
author Ruslan Ermilov <ru@nginx.com>
date Tue, 08 Aug 2017 09:23:57 +0300
parents 469aebbd94d0
children 283b1e67eaa6
comparison
equal deleted inserted replaced
2013:469aebbd94d0 2014:6e66487c5756
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="7"> 13 rev="8">
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) is used 18 The <literal>ngx_http_limit_req_module</literal> module (0.7.21) is used
196 is always 4 bytes for IPv4 addresses or 16 bytes for IPv6 addresses. 196 is always 4 bytes for IPv4 addresses or 16 bytes for IPv6 addresses.
197 The stored state always occupies 197 The stored state always occupies
198 64 bytes on 32-bit platforms and 128 bytes on 64-bit platforms. 198 64 bytes on 32-bit platforms and 128 bytes on 64-bit platforms.
199 One megabyte zone can keep about 16 thousand 64-byte states 199 One megabyte zone can keep about 16 thousand 64-byte states
200 or about 8 thousand 128-byte states. 200 or about 8 thousand 128-byte states.
201 If the zone storage is exhausted, the server will return the 201 </para>
202 <link id="limit_req_status">error</link> 202
203 to all further requests. 203 <para>
204 If the zone storage is exhausted, the least recently used state is removed.
205 Even if after that a new state cannot be created, the request is terminated with
206 an <link id="limit_req_status">error</link>.
204 </para> 207 </para>
205 208
206 <para> 209 <para>
207 The rate is specified in requests per second (r/s). 210 The rate is specified in requests per second (r/s).
208 If a rate of less than one request per second is desired, 211 If a rate of less than one request per second is desired,