Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d5b6de

Browse files
committed
uses reds and blues from pui, changes font tag to css[#161264703]
1 parent de10a8f commit 1d5b6de

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

weighted-routing.html.md.erb

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ title: Using Weighted Routing (Beta)
33
owner: Routing
44
---
55

6+
<style>
7+
.app-a {
8+
color: #0065d5;
9+
}
10+
11+
.app-b {
12+
color: #971922;
13+
}
14+
15+
</style>
16+
617
This topic provides information about weighted routing and how to configure weighted routing for your apps.
718

819
## <a id="overview"></a> Overview
@@ -22,9 +33,9 @@ Weighted routing allows you to map multiple apps to the same route and control t
2233

2334
_weight of app_ / _sum of the weights of all apps mapped to route_
2435

25-
Consider an example in which two apps are mapped to the same route: <font color="red"><code>app-a</code></font> and <font color="blue"><code>app-b</code></font>. The percentage of requests for <font color="blue"><code>app-b</code></font> is calculated as follows:
36+
Consider an example in which two apps are mapped to the same route: <code class="app-a">app-a</code> and <code class="app-b">app-b</code>. The percentage of requests for <code class="app-b">app-b</code> is calculated as follows:
2637

27-
<font color="blue">weight of <code>app-b</code></font> / ( <font color="red">weight of <code>app-a</code></font> + <font color="blue">weight of <code>app-b</code></font> )
38+
<span class="app-b">weight of <code>app-b</code></span> / ( <span class="app-a">weight of <code>app-a</code></span> + <span class="app-b">weight of <code>app-b</code></span> )
2839

2940
The following table uses example values to show how the percentage of requests is calculated for the two apps:
3041

@@ -36,16 +47,16 @@ The following table uses example values to show how the percentage of requests i
3647
<th>Percentage of Requests</th>
3748
</tr>
3849
<tr>
39-
<td><font color="red"><code>app-a</code></font></td>
40-
<td><font color="red"><code>1</code></font></td>
41-
<td><font color="red"><code>1</code></font> / ( <font color="red"><code>1</code></font> + <font color="blue"><code>3</code></font> )</td>
42-
<td><font color="red"><code>25%</code></font></td>
50+
<td><code class="app-a">app-a</code></td>
51+
<td><code class="app-a">1</code></td>
52+
<td><code class="app-a">1</code> / ( <code class="app-a">1</code> + <code class="app-b">3</code> )</td>
53+
<td><code class="app-a">25%</code></td>
4354
</tr>
4455
<tr>
45-
<td><font color="blue"><code>app-b</code></font></td>
46-
<td><font color="blue"><code>3</code></font></td>
47-
<td><font color="blue"><code>3</code></font> / ( <font color="red"><code>1</code></font> + <font color="blue"><code>3</code></font> )</td>
48-
<td><font color="blue"><code>75%</code></font></td>
56+
<td><code class="app-b">app-b</code></td>
57+
<td><code class="app-b">3</code></td>
58+
<td><code class="app-b">3</code> / ( <code class="app-a">1</code> + <code class="app-b">3</code> )</td>
59+
<td><code class="app-b">75%</code></td>
4960
</tr>
5061
</table>
5162

0 commit comments

Comments
 (0)