Skip to content

Commit 8d5d93b

Browse files
authored
reverse_proxy: Describe using zero for weighted round robin (#437)
The old restriction is lifted now that caddyserver/caddy#6681 is merged and released in 2.9.0
1 parent f378fbf commit 8d5d93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/markdown/caddyfile/directives/reverse_proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ This is enabled by default, with the `random` policy. Retries are disabled by de
275275

276276
- `round_robin` iterates each upstream in turn
277277

278-
- `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.
278+
- `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.
279279

280280
- `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
281281

0 commit comments

Comments
 (0)