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:
Dan Cecile 2025-01-02 22:40:21 -05:00 committed by GitHub
parent f378fbf2fa
commit 8d5d93b379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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