comparison xml/en/docs/http/ngx_http_limit_conn_module.xml @ 2013:469aebbd94d0

Limit_req/limit_conn may return not only 503 on failure.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 08 Aug 2017 09:23:25 +0300
parents 6c96a644b0b3
children 4931a7ba6a32
comparison
equal deleted inserted replaced
2012:e1d9e51fd1ce 2013:469aebbd94d0
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_limit_conn_module" 10 <module name="Module ngx_http_limit_conn_module"
11 link="/en/docs/http/ngx_http_limit_conn_module.html" 11 link="/en/docs/http/ngx_http_limit_conn_module.html"
12 lang="en" 12 lang="en"
13 rev="9"> 13 rev="10">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_limit_conn_module</literal> module is used to 18 The <literal>ngx_http_limit_conn_module</literal> module is used to
62 62
63 <para> 63 <para>
64 Sets the shared memory zone 64 Sets the shared memory zone
65 and the maximum allowed number of connections for a given key value. 65 and the maximum allowed number of connections for a given key value.
66 When this limit is exceeded, the server will return the 66 When this limit is exceeded, the server will return the
67 <http-status code="503" text="Service Temporarily Unavailable"/> 67 <link id="limit_conn_status">error</link>
68 error in reply to a request. 68 in reply to a request.
69 For example, the directives 69 For example, the directives
70 <example> 70 <example>
71 limit_conn_zone $binary_remote_addr zone=addr:10m; 71 limit_conn_zone $binary_remote_addr zone=addr:10m;
72 72
73 server { 73 server {
177 The stored state always occupies 32 or 64 bytes 177 The stored state always occupies 32 or 64 bytes
178 on 32-bit platforms and 64 bytes on 64-bit platforms. 178 on 32-bit platforms and 64 bytes on 64-bit platforms.
179 One megabyte zone can keep about 32 thousand 32-byte states 179 One megabyte zone can keep about 32 thousand 32-byte states
180 or about 16 thousand 64-byte states. 180 or about 16 thousand 64-byte states.
181 If the zone storage is exhausted, the server will return the 181 If the zone storage is exhausted, the server will return the
182 <http-status code="503" text="Service Temporarily Unavailable"/> 182 <link id="limit_conn_status">error</link>
183 error to all further requests. 183 to all further requests.
184 </para> 184 </para>
185 185
186 </directive> 186 </directive>
187 187
188 188