]> granicus.if.org Git - apache/commitdiff
update transformation
authorAndré Malo <nd@apache.org>
Sat, 27 Nov 2004 21:01:50 +0000 (21:01 +0000)
committerAndré Malo <nd@apache.org>
Sat, 27 Nov 2004 21:01:50 +0000 (21:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106759 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_proxy_balancer.html.en
docs/manual/mod/mod_proxy_balancer.xml.ja

index 849ac171ccb2f8ecfe606c6e4aa947528c0e8832..da60cee0ad095174f7fadedec2518364e202f5c7 100644 (file)
@@ -80,49 +80,104 @@ load balancing </td></tr>
 
     <p>If some workers are disabled, the others will
     still be scheduled correctly.</p>
-    <div class="example"><pre>
-for each worker in workers
+
+    <div class="example"><pre><code>for each worker in workers
     worker lbstatus += worker lbfactor
     total factor    += worker lbfactor
     if worker lbstatus &gt; candidate lbstatus
-       candidate = worker
+        candidate = worker
 
-candidate lbstatus -= total factor
+candidate lbstatus -= total factor</code></pre></div>
 
-    </pre></div>
     <p>If a balancer is configured as follows:</p>
     
-    <pre><code>
-    worker     a    b    c    d
-    lbfactor  25   25   25   25
-    lbstatus   0    0    0    0
-    </code></pre>
+    <table><tr><th>worker</th>
+        <th class="data">a</th>
+        <th class="data">b</th>
+        <th class="data">c</th>
+        <th class="data">d</th></tr>
+<tr><th>lbfactor</th>
+        <td class="data">25</td>
+        <td class="data">25</td>
+        <td class="data">25</td>
+        <td class="data">25</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">0</td>
+        <td class="data">0</td>
+        <td class="data">0</td>
+        <td class="data">0</td></tr>
+</table>
 
     <p>And <var>b</var> gets disabled, the following schedule is produced:</p>
-    <pre><code>
-    lbstatus <strong>-50</strong>    0   25   25
-    lbstatus -25    0  <strong>-25</strong>   50
-    lbstatus   0    0    0    <strong>0</strong>
-    (repeat)
-    </code></pre>
-    <p>That is it schedules: a c d a c d a c d ...</p>
+
+    <table><tr><th>worker</th>
+        <th class="data">a</th>
+        <th class="data">b</th>
+        <th class="data">c</th>
+        <th class="data">d</th></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-50</em></td>
+        <td class="data">0</td>
+        <td class="data">25</td>
+        <td class="data">25</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">-25</td>
+        <td class="data">0</td>
+        <td class="data"><em>-25</em></td>
+        <td class="data">50</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">0</td>
+        <td class="data">0</td>
+        <td class="data">0</td>
+        <td class="data"><em>0</em></td></tr>
+<tr><td class="data" colspan="5">(repeat)</td></tr>
+</table>
+
+    <p>That is it schedules: <var>a</var> <var>c</var> <var>d</var>
+    <var>a</var> <var>c</var> <var>d</var> <var>a</var> <var>c</var>
+    <var>d</var> ...</p>
+
     <p>The following asymmetric configuration works as one would expect:</p>
-    <pre><code>
-    worker     a    b
-    lbfactor  70   30
-
-    lbstatus <strong>-30</strong>   30
-    lbstatus  40  <strong>-40</strong>
-    lbstatus  <strong>10</strong>  -10
-    lbstatus <strong>-20</strong>   20
-    lbstatus <strong>-50</strong>   50
-    lbstatus  20  <strong>-20</strong>
-    lbstatus <strong>-10</strong>   10
-    lbstatus <strong>-40</strong>   40
-    lbstatus  30  <strong>-30</strong>
-    lbasatus   <strong>0</strong>    0
-    (repeat)
-    </code></pre>
+
+    <table><tr><th>worker</th>
+        <th class="data">a</th>
+        <th class="data">b</th></tr>
+<tr><th>lbfactor</th>
+        <td class="data">70</td>
+        <td class="data">30</td></tr>
+<tr><td class="data" colspan="2">&nbsp;</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-30</em></td>
+        <td class="data">30</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">40</td>
+        <td class="data"><em>-40</em></td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>10</em></td>
+        <td class="data">-10</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-20</em></td>
+        <td class="data">20</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-50</em></td>
+        <td class="data">50</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">20</td>
+        <td class="data"><em>-20</em></td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-10</em></td>
+        <td class="data">10</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>-40</em></td>
+        <td class="data">40</td></tr>
+<tr><th>lbstatus</th>
+        <td class="data">30</td>
+        <td class="data"><em>-30</em></td></tr>
+<tr><th>lbstatus</th>
+        <td class="data"><em>0</em></td>
+        <td class="data">0</td></tr>
+<tr><td class="data" colspan="3">(repeat)</td></tr>
+</table>
 
     <p>That is after 10 schedules, the schedule repeats and 7 <var>a</var>
     are selected with 3 <var>b</var> interspersed.</p>
index 2861a0437a4fcd7f9dd27234ab807c675ea5958c..7519801800612b081cf40bc3bb3709da4ebc6bd7 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-2022-jp"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 105989 (outdated: 106723) -->
+<!-- English Revision: 105989 (outdated: 106758) -->
 
 <!--
  Copyright 2002-2004 The Apache Software Foundation