File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ with each endpoint getting at least 1. If the service `weight` is 0 each
2323of the service's endpoints will get 0.
2424
2525The `weight` must be in the range 0-256. The default is 1. When the `weight` is
26- 0 no requests are passed to the service. If all services have `weight` 0,
27- requests are returned with a 503 error. When a service has no endpoints, the weight
28- is effectively 0.
26+ 0, the service does not participate in load-balancing but continues to serve
27+ existing persistent connections.
2928
3029When using `alternateBackends` also use the `roundrobin` load balancing strategy to ensure requests are distributed
3130as expected to the services based on `weight` . `roundrobin` can be set for a
Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ service is the `service_weight` divided by the `sum_of_weights`. The
156156the sum of the endpoint `weights` is the service `weight`.
157157
158158The route can have up to four services. The `weight` for the service can be
159- between `0` and `256`. When the `weight` is `0`, no new requests go to the
160- service, however existing connections remain active . When the service `weight`
159+ between `0` and `256`. When the `weight` is `0`, the service does not participate in load-balancing
160+ but continues to serve existing persistent connections . When the service `weight`
161161is not `0`, each endpoint has a minimum `weight` of `1`. Because of this, a
162162service with a lot of endpoints can end up with higher `weight` than desired.
163163In this case, reduce the number of pods to get the desired load balance
@@ -209,6 +209,9 @@ service with default `weight=1` so all requests go to it. Adding the other servi
209209an `alternateBackends` and adjusting the `weights` will bring the A/B setup to life.
210210This can be done by the `oc set route-backends` command or by editing the route.
211211+
212+ Setting the `oc set route-backend` to 0 means the service does not participate
213+ in load-balancing but continues to serve existing persistent connections.
214+ +
212215[NOTE]
213216====
214217Changes to the route just change the portion of traffic to the various services.
You can’t perform that action at this time.
0 commit comments