@@ -43,13 +43,13 @@ http {
4343 listen 6000;
4444
4545 location /dynamic {
46- allow 127.0.0.1;
46+ allow 127.0.0.1;
4747 deny all;
4848 dynamic_upstream;
4949 }
5050
5151 location / {
52- proxy_pass http://backends;
52+ proxy_pass http://backends;
5353 }
5454 }
5555}
8787
8888``` bash
8989$ curl " http://127.0.0.1:6000/dynamic?upstream=zone_for_backends&verbose="
90- server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10;
91- server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10;
92- server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10;
90+ server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
91+ server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
92+ server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
9393$
9494```
9595
9696## update_parameters
9797
9898``` bash
99- $ curl " http://127.0.0.1:6000/dynamic?upstream=zone_for_backends&server=127.0.0.1:6003&weight=10&max_fails=5&fail_timeout=5"
100- server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10;
101- server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10;
102- server 127.0.0.1:6003 weight=10 max_fails=5 fail_timeout=5;
99+ $ curl " http://127.0.0.1:6000/dynamic?upstream=zone_for_backends&server=127.0.0.1:6003&weight=10&max_fails=5&fail_timeout=5&max_conns=10 "
100+ server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
101+ server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
102+ server 127.0.0.1:6003 weight=10 max_fails=5 fail_timeout=5 max_conns=10 conns=0 ;
103103$
104104```
105105
@@ -113,19 +113,19 @@ The supported parameters are below.
113113
114114``` bash
115115$ curl " http://127.0.0.1:6000/dynamic?upstream=zone_for_backends&server=127.0.0.1:6003&down="
116- server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10;
117- server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10;
118- server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10 down;
116+ server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
117+ server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
118+ server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 down;
119119$
120120```
121121
122122## up
123123
124124``` bash
125125$ curl " http://127.0.0.1:6000/dynamic?upstream=zone_for_backends&server=127.0.0.1:6003&up="
126- server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10;
127- server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10;
128- server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10;
126+ server 127.0.0.1:6001 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
127+ server 127.0.0.1:6002 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
128+ server 127.0.0.1:6003 weight=1 max_fails=1 fail_timeout=10 max_conns=0 conns=0 ;
129129$
130130```
131131
0 commit comments