commit | 5f13bb8d65e85ac02c7f025fe961fe20c42341d1 | [log] [tgz] |
---|---|---|
author | Vladimir Homutov <vl@nginx.com> | Fri Jun 15 11:46:14 2018 +0300 |
committer | Vladimir Homutov <vl@nginx.com> | Fri Jun 15 11:46:14 2018 +0300 |
tree | 953fbddab43d9e5d8a06e2d8f1e61d1e006a21dd | |
parent | b8bace1065087d9c5a343c91b9a6af1e3a946696 [diff] |
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; }