changeset 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 2e0d07952c8f
children 519322f82dce
files xml/en/docs/stream/ngx_stream_split_clients_module.xml xml/ru/docs/stream/ngx_stream_split_clients_module.xml
diffstat 2 files changed, 24 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_split_clients_module.xml	Tue Aug 02 21:58:31 2016 +0300
+++ b/xml/en/docs/stream/ngx_stream_split_clients_module.xml	Wed Aug 03 14:20:50 2016 +0300
@@ -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 @@
 <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>
 
--- a/xml/ru/docs/stream/ngx_stream_split_clients_module.xml	Tue Aug 02 21:58:31 2016 +0300
+++ b/xml/ru/docs/stream/ngx_stream_split_clients_module.xml	Wed Aug 03 14:20:50 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_split_clients_module"
         link="/ru/docs/stream/ngx_stream_split_clients_module.html"
         lang="ru"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
@@ -26,11 +26,18 @@
 <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>