]> git.kaiwu.me - nginx.git/commit
Upstream: ngx_http_upstream_random module.
authorVladimir Homutov <vl@nginx.com>
Fri, 15 Jun 2018 08:46:14 +0000 (11:46 +0300)
committerVladimir Homutov <vl@nginx.com>
Fri, 15 Jun 2018 08:46:14 +0000 (11:46 +0300)
commit0c4ccbea23813a50132df511d4445bc1686dbc2f
tree953fbddab43d9e5d8a06e2d8f1e61d1e006a21dd
parent2eab9efbe4050ab471cfa3ed778d751454fcd87d
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;
}
auto/modules
auto/options
src/http/modules/ngx_http_upstream_random_module.c [new file with mode: 0644]
src/stream/ngx_stream_upstream_random_module.c [new file with mode: 0644]