Skip to content

Commit 97b4a73

Browse files
author
Steven Smith
committed
Migrates 3.11 note regarding routes to 4.x
1 parent 5b65ae8 commit 97b4a73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/deployments-ab-testing-lb.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ Browse to the application at `ab-example-a.<project>.<router_domain>` to verify
5454

5555
. When you deploy the route, the router balances the traffic according to the `weights` specified for the services. At this point, there is a single service with default `weight=1` so all requests go to it. Adding the other service as an `alternateBackends` and adjusting the `weights` brings the A/B setup to life. This can be done by the `oc set route-backends` command or by editing the route.
5656
+
57+
[NOTE]
58+
====
59+
When using `alternateBackends`, also use the `roundrobin` load-balancing strategy to ensure requests are distributed as expected to the services based on weight. `roundrobin` can be set for a route by using a link:https://docs.openshift.com/container-platform/4.13/networking/routes/route-configuration.html#nw-route-specific-annotations_route-configuration[route annotation].
60+
====
61+
+
5762
Setting the `oc set route-backend` to `0` means the service does not participate in load-balancing, but continues to serve existing persistent connections.
5863
+
5964
[NOTE]

0 commit comments

Comments
 (0)