httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject svn commit: r106758 - /httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml
Date Sat, 27 Nov 2004 20:58:40 GMT
Author: nd
Date: Sat Nov 27 12:58:39 2004
New Revision: 106758

URL: http://svn.apache.org/viewcvs?view=rev&rev=106758
Log:
fix semantics again.

Modified:
   httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml?view=diff&rev=106758&p1=httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml&r1=106757&p2=httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml&r2=106758
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml	(original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml	Sat Nov 27 12:58:39 2004
@@ -69,49 +69,108 @@
 
     <p>If some workers are disabled, the others will
     still be scheduled correctly.</p>
-    <example><pre>
-for each worker in workers
+
+    <example><pre><code>for each worker in workers
     worker lbstatus += worker lbfactor
     total factor    += worker lbfactor
     if worker lbstatus > candidate lbstatus
-       candidate = worker
+        candidate = worker
 
-candidate lbstatus -= total factor
+candidate lbstatus -= total factor</code></pre>
+    </example>
 
-    </pre></example>
     <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 style="data">
+    <tr><th>worker</th>
+        <th>a</th>
+        <th>b</th>
+        <th>c</th>
+        <th>d</th></tr>
+    <tr><th>lbfactor</th>
+        <td>25</td>
+        <td>25</td>
+        <td>25</td>
+        <td>25</td></tr>
+    <tr><th>lbstatus</th>
+        <td>0</td>
+        <td>0</td>
+        <td>0</td>
+        <td>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 style="data">
+    <tr><th>worker</th>
+        <th>a</th>
+        <th>b</th>
+        <th>c</th>
+        <th>d</th></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-50</em></td>
+        <td>0</td>
+        <td>25</td>
+        <td>25</td></tr>
+    <tr><th>lbstatus</th>
+        <td>-25</td>
+        <td>0</td>
+        <td><em>-25</em></td>
+        <td>50</td></tr>
+    <tr><th>lbstatus</th>
+        <td>0</td>
+        <td>0</td>
+        <td>0</td>
+        <td><em>0</em></td></tr>
+    <tr><td 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 style="data">
+    <tr><th>worker</th>
+        <th>a</th>
+        <th>b</th></tr>
+    <tr><th>lbfactor</th>
+        <td>70</td>
+        <td>30</td></tr>
+    <tr><td colspan="2">&nbsp;</td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-30</em></td>
+        <td>30</td></tr>
+    <tr><th>lbstatus</th>
+        <td>40</td>
+        <td><em>-40</em></td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>10</em></td>
+        <td>-10</td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-20</em></td>
+        <td>20</td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-50</em></td>
+        <td>50</td></tr>
+    <tr><th>lbstatus</th>
+        <td>20</td>
+        <td><em>-20</em></td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-10</em></td>
+        <td>10</td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>-40</em></td>
+        <td>40</td></tr>
+    <tr><th>lbstatus</th>
+        <td>30</td>
+        <td><em>-30</em></td></tr>
+    <tr><th>lbstatus</th>
+        <td><em>0</em></td>
+        <td>0</td></tr>
+    <tr><td 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>

Mime
View raw message