Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_limit_req_module.xml @ 1699:6c96a644b0b3
Corrected description of $binary_remote_addr and saved state.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 05 May 2016 14:43:40 +0300 |
parents | 7945dac7ad47 |
children | 469aebbd94d0 |
comparison
equal
deleted
inserted
replaced
1698:2052ffb3529a | 1699:6c96a644b0b3 |
---|---|
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="5"> | 13 rev="6"> |
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 |
189 </para> | 189 </para> |
190 | 190 |
191 <para> | 191 <para> |
192 A client IP address serves as a key. | 192 A client IP address serves as a key. |
193 Note that instead of <var>$remote_addr</var>, the | 193 Note that instead of <var>$remote_addr</var>, the |
194 <var>$binary_remote_addr</var> variable is used here, | 194 <var>$binary_remote_addr</var> variable is used here. |
195 that allows decreasing the state size down to 64 bytes. | 195 The <var>$binary_remote_addr</var> variable’s size |
196 One megabyte zone can keep about 16 thousand 64-byte states. | 196 is always 4 bytes for IPv4 addresses or 16 bytes for IPv6 addresses. |
197 The stored state always occupies | |
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 | |
200 or about 8 thousand 128-byte states. | |
197 If the zone storage is exhausted, the server will return the | 201 If the zone storage is exhausted, the server will return the |
198 <http-status code="503" text="Service Temporarily Unavailable"/> | 202 <http-status code="503" text="Service Temporarily Unavailable"/> |
199 error to all further requests. | 203 error to all further requests. |
200 </para> | 204 </para> |
201 | 205 |