Mercurial > hg > nginx
comparison auto/options @ 7301:f2396ecf608b
Upstream: ngx_http_upstream_random module.
The module implements random load-balancing algorithm with optional second
choice. In the latter case, the best of two servers is chosen, accounting
number of connections and server weight.
Example:
upstream u {
random [two [least_conn]];
server 127.0.0.1:8080;
server 127.0.0.1:8081;
server 127.0.0.1:8082;
server 127.0.0.1:8083;
}
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 15 Jun 2018 11:46:14 +0300 |
parents | d87393919a10 |
children | ee36940cfb0f |
comparison
equal
deleted
inserted
replaced
7300:ed599ea6c1f1 | 7301:f2396ecf608b |
---|---|
100 HTTP_GUNZIP=NO | 100 HTTP_GUNZIP=NO |
101 HTTP_GZIP_STATIC=NO | 101 HTTP_GZIP_STATIC=NO |
102 HTTP_UPSTREAM_HASH=YES | 102 HTTP_UPSTREAM_HASH=YES |
103 HTTP_UPSTREAM_IP_HASH=YES | 103 HTTP_UPSTREAM_IP_HASH=YES |
104 HTTP_UPSTREAM_LEAST_CONN=YES | 104 HTTP_UPSTREAM_LEAST_CONN=YES |
105 HTTP_UPSTREAM_RANDOM=YES | |
105 HTTP_UPSTREAM_KEEPALIVE=YES | 106 HTTP_UPSTREAM_KEEPALIVE=YES |
106 HTTP_UPSTREAM_ZONE=YES | 107 HTTP_UPSTREAM_ZONE=YES |
107 | 108 |
108 # STUB | 109 # STUB |
109 HTTP_STUB_STATUS=NO | 110 HTTP_STUB_STATUS=NO |
124 STREAM_MAP=YES | 125 STREAM_MAP=YES |
125 STREAM_SPLIT_CLIENTS=YES | 126 STREAM_SPLIT_CLIENTS=YES |
126 STREAM_RETURN=YES | 127 STREAM_RETURN=YES |
127 STREAM_UPSTREAM_HASH=YES | 128 STREAM_UPSTREAM_HASH=YES |
128 STREAM_UPSTREAM_LEAST_CONN=YES | 129 STREAM_UPSTREAM_LEAST_CONN=YES |
130 STREAM_UPSTREAM_RANDOM=YES | |
129 STREAM_UPSTREAM_ZONE=YES | 131 STREAM_UPSTREAM_ZONE=YES |
130 STREAM_SSL_PREREAD=NO | 132 STREAM_SSL_PREREAD=NO |
131 | 133 |
132 DYNAMIC_MODULES= | 134 DYNAMIC_MODULES= |
133 | 135 |
271 --without-http_browser_module) HTTP_BROWSER=NO ;; | 273 --without-http_browser_module) HTTP_BROWSER=NO ;; |
272 --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO ;; | 274 --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO ;; |
273 --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;; | 275 --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;; |
274 --without-http_upstream_least_conn_module) | 276 --without-http_upstream_least_conn_module) |
275 HTTP_UPSTREAM_LEAST_CONN=NO ;; | 277 HTTP_UPSTREAM_LEAST_CONN=NO ;; |
278 --without-http_upstream_random_module) | |
279 HTTP_UPSTREAM_RANDOM=NO ;; | |
276 --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;; | 280 --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;; |
277 --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO ;; | 281 --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO ;; |
278 | 282 |
279 --with-http_perl_module) HTTP_PERL=YES ;; | 283 --with-http_perl_module) HTTP_PERL=YES ;; |
280 --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC ;; | 284 --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC ;; |
323 --without-stream_return_module) STREAM_RETURN=NO ;; | 327 --without-stream_return_module) STREAM_RETURN=NO ;; |
324 --without-stream_upstream_hash_module) | 328 --without-stream_upstream_hash_module) |
325 STREAM_UPSTREAM_HASH=NO ;; | 329 STREAM_UPSTREAM_HASH=NO ;; |
326 --without-stream_upstream_least_conn_module) | 330 --without-stream_upstream_least_conn_module) |
327 STREAM_UPSTREAM_LEAST_CONN=NO ;; | 331 STREAM_UPSTREAM_LEAST_CONN=NO ;; |
332 --without-stream_upstream_random_module) | |
333 STREAM_UPSTREAM_RANDOM=NO ;; | |
328 --without-stream_upstream_zone_module) | 334 --without-stream_upstream_zone_module) |
329 STREAM_UPSTREAM_ZONE=NO ;; | 335 STREAM_UPSTREAM_ZONE=NO ;; |
330 | 336 |
331 --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;; | 337 --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;; |
332 --with-cpp_test_module) NGX_CPP_TEST=YES ;; | 338 --with-cpp_test_module) NGX_CPP_TEST=YES ;; |
483 disable ngx_http_upstream_hash_module | 489 disable ngx_http_upstream_hash_module |
484 --without-http_upstream_ip_hash_module | 490 --without-http_upstream_ip_hash_module |
485 disable ngx_http_upstream_ip_hash_module | 491 disable ngx_http_upstream_ip_hash_module |
486 --without-http_upstream_least_conn_module | 492 --without-http_upstream_least_conn_module |
487 disable ngx_http_upstream_least_conn_module | 493 disable ngx_http_upstream_least_conn_module |
494 --without-http_upstream_random_module | |
495 disable ngx_http_upstream_random_module | |
488 --without-http_upstream_keepalive_module | 496 --without-http_upstream_keepalive_module |
489 disable ngx_http_upstream_keepalive_module | 497 disable ngx_http_upstream_keepalive_module |
490 --without-http_upstream_zone_module | 498 --without-http_upstream_zone_module |
491 disable ngx_http_upstream_zone_module | 499 disable ngx_http_upstream_zone_module |
492 | 500 |
533 --without-stream_return_module disable ngx_stream_return_module | 541 --without-stream_return_module disable ngx_stream_return_module |
534 --without-stream_upstream_hash_module | 542 --without-stream_upstream_hash_module |
535 disable ngx_stream_upstream_hash_module | 543 disable ngx_stream_upstream_hash_module |
536 --without-stream_upstream_least_conn_module | 544 --without-stream_upstream_least_conn_module |
537 disable ngx_stream_upstream_least_conn_module | 545 disable ngx_stream_upstream_least_conn_module |
546 --without-stream_upstream_random_module | |
547 disable ngx_stream_upstream_random_module | |
538 --without-stream_upstream_zone_module | 548 --without-stream_upstream_zone_module |
539 disable ngx_stream_upstream_zone_module | 549 disable ngx_stream_upstream_zone_module |
540 | 550 |
541 --with-google_perftools_module enable ngx_google_perftools_module | 551 --with-google_perftools_module enable ngx_google_perftools_module |
542 --with-cpp_test_module enable ngx_cpp_test_module | 552 --with-cpp_test_module enable ngx_cpp_test_module |