Mercurial > hg > nginx-site
diff 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 |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_upstream_module.xml Tue Jul 05 17:58:34 2016 +0300 +++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml Tue Jul 05 17:58:34 2016 +0300 @@ -9,7 +9,7 @@ <module name="Module ngx_stream_upstream_module" link="/en/docs/stream/ngx_stream_upstream_module.html" lang="en" - rev="13"> + rev="14"> <section id="summary"> @@ -383,8 +383,12 @@ <para> Specifies a load balancing method for a server group where client-server mapping is based on the hashed <value>key</value> value. -Currently, the only supported value for the <literal>key</literal> -is the client remote address specified as <literal>$remote_addr</literal>. +The <value>key</value> can contain text, variables, +and their combinations (1.11.2). +Usage example: +<example> +hash $remote_addr; +</example> Note that adding or removing a server from the group may result in remapping most of the keys to different servers. The method is compatible with the