You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: weighted-routing.html.md.erb
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,17 @@ title: Using Weighted Routing (Beta)
3
3
owner: Routing
4
4
---
5
5
6
+
<style>
7
+
.app-a {
8
+
color:#0065d5;
9
+
}
10
+
11
+
.app-b {
12
+
color:#971922;
13
+
}
14
+
15
+
</style>
16
+
6
17
This topic provides information about weighted routing and how to configure weighted routing for your apps.
7
18
8
19
## <aid="overview"></a> Overview
@@ -22,9 +33,9 @@ Weighted routing allows you to map multiple apps to the same route and control t
22
33
23
34
_weight of app_ / _sum of the weights of all apps mapped to route_
24
35
25
-
Consider an example in which two apps are mapped to the same route: <fontcolor="red"><code>app-a</code></font> and <fontcolor="blue"><code>app-b</code></font>. The percentage of requests for <fontcolor="blue"><code>app-b</code></font> is calculated as follows:
36
+
Consider an example in which two apps are mapped to the same route: <codeclass="app-a">app-a</code> and <codeclass="app-b">app-b</code>. The percentage of requests for <codeclass="app-b">app-b</code> is calculated as follows:
26
37
27
-
<fontcolor="blue">weight of <code>app-b</code></font> / ( <fontcolor="red">weight of <code>app-a</code></font> + <fontcolor="blue">weight of <code>app-b</code></font> )
38
+
<spanclass="app-b">weight of <code>app-b</code></span> / ( <spanclass="app-a">weight of <code>app-a</code></span> + <spanclass="app-b">weight of <code>app-b</code></span> )
28
39
29
40
The following table uses example values to show how the percentage of requests is calculated for the two apps:
30
41
@@ -36,16 +47,16 @@ The following table uses example values to show how the percentage of requests i
0 commit comments