mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
reverse_proxy: Describe using zero for weighted round robin (#437)
The old restriction is lifted now that https://github.com/caddyserver/caddy/pull/6681 is merged and released in 2.9.0
This commit is contained in:
parent
f378fbf2fa
commit
8d5d93b379
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ This is enabled by default, with the `random` policy. Retries are disabled by de
|
||||||
|
|
||||||
- `round_robin` iterates each upstream in turn
|
- `round_robin` iterates each upstream in turn
|
||||||
|
|
||||||
- `weighted_round_robin <weights...>` iterates each upstream in turn, respecting the weights provided. The amount of weight arguments should match the amount of upstreams configured. Weights should be non-zero positive integers. For example with two upstreams and weights `5 1`, the first upstream would be selected 5 times in a row before the second upstream is selected once, then the cycle repeats.
|
- `weighted_round_robin <weights...>` iterates each upstream in turn, respecting the weights provided. The amount of weight arguments should match the amount of upstreams configured. Weights should be non-negative integers. For example with two upstreams and weights `5 1`, the first upstream would be selected 5 times in a row before the second upstream is selected once, then the cycle repeats. If zero is used as a weight, this will disable selecting the upstream for new requests.
|
||||||
|
|
||||||
- `least_conn` choose upstream with fewest number of current requests; if more than one host has the least number of requests, then one of those hosts is chosen at random
|
- `least_conn` choose upstream with fewest number of current requests; if more than one host has the least number of requests, then one of those hosts is chosen at random
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue