Mercurial > hg > nginx-site
diff xml/en/docs/stream/ngx_stream_split_clients_module.xml @ 1759:42d2806f5b28
Updated example in ngx_stream_split_clients_module with variables.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 03 Aug 2016 14:20:50 +0300 |
parents | b4de612feff8 |
children |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_split_clients_module.xml +++ b/xml/en/docs/stream/ngx_stream_split_clients_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_stream_split_clients_module" link="/en/docs/stream/ngx_stream_split_clients_module.html" lang="en" - rev="1"> + rev="2"> <section id="summary"> @@ -26,11 +26,18 @@ variables suitable for A/B testing, also <para> <example> stream { - split_clients "${remote_addr}AAA" $variant { - 0.5% .one; - 2.0% .two; - * ""; + ... + split_clients "${remote_addr}AAA" $upstream { + 0.5% feature_test1; + 2.0% feature_test2; + * production; } + + server { + ... + proxy_pass $upstream; + } +} </example> </para>