Mercurial > hg > nginx-site
comparison xml/en/docs/stream/ngx_stream_upstream_module.xml @ 1744:ab56dcd73af2
Added variables to stream hash, limit_conn_zone, proxy_bind.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 05 Jul 2016 17:58:34 +0300 |
parents | 1a16dce51bce |
children | 536dc1885e24 |
comparison
equal
deleted
inserted
replaced
1743:3d686cb47c2c | 1744:ab56dcd73af2 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_stream_upstream_module" | 9 <module name="Module ngx_stream_upstream_module" |
10 link="/en/docs/stream/ngx_stream_upstream_module.html" | 10 link="/en/docs/stream/ngx_stream_upstream_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="13"> | 12 rev="14"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_stream_upstream_module</literal> module (1.9.0) | 17 The <literal>ngx_stream_upstream_module</literal> module (1.9.0) |
381 <context>upstream</context> | 381 <context>upstream</context> |
382 | 382 |
383 <para> | 383 <para> |
384 Specifies a load balancing method for a server group | 384 Specifies a load balancing method for a server group |
385 where client-server mapping is based on the hashed <value>key</value> value. | 385 where client-server mapping is based on the hashed <value>key</value> value. |
386 Currently, the only supported value for the <literal>key</literal> | 386 The <value>key</value> can contain text, variables, |
387 is the client remote address specified as <literal>$remote_addr</literal>. | 387 and their combinations (1.11.2). |
388 Usage example: | |
389 <example> | |
390 hash $remote_addr; | |
391 </example> | |
388 Note that adding or removing a server from the group | 392 Note that adding or removing a server from the group |
389 may result in remapping most of the keys to different servers. | 393 may result in remapping most of the keys to different servers. |
390 The method is compatible with the | 394 The method is compatible with the |
391 <link url="http://search.cpan.org/perldoc?Cache%3A%3AMemcached">Cache::Memcached</link> | 395 <link url="http://search.cpan.org/perldoc?Cache%3A%3AMemcached">Cache::Memcached</link> |
392 Perl library. | 396 Perl library. |