Skip to content

Commit 5af1cb1

Browse files
authored
Merge pull request #12025 from mburke5678/BZ-1628615
Document router behavior changes due to rhbz#1584701
2 parents 8a85cf5 + f6e8d69 commit 5af1cb1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

architecture/topics/alternate_backends_weights.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ with each endpoint getting at least 1. If the service `weight` is 0 each
2323
of the service's endpoints will get 0.
2424

2525
The `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

3029
When using `alternateBackends` also use the `roundrobin` load balancing strategy to ensure requests are distributed
3130
as expected to the services based on `weight`. `roundrobin` can be set for a

dev_guide/deployments/advanced_deployment_strategies.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ service is the `service_weight` divided by the `sum_of_weights`. The
156156
the sum of the endpoint `weights` is the service `weight`.
157157

158158
The 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`
161161
is not `0`, each endpoint has a minimum `weight` of `1`. Because of this, a
162162
service with a lot of endpoints can end up with higher `weight` than desired.
163163
In 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
209209
an `alternateBackends` and adjusting the `weights` will bring the A/B setup to life.
210210
This 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
====
214217
Changes to the route just change the portion of traffic to the various services.

0 commit comments

Comments
 (0)