http://wiki3.caucho.com/index.php?title=Selecting_a_Backend_Server&feed=atom&action=historySelecting a Backend Server - Revision history2024-03-29T07:11:42ZRevision history for this page on the wikiMediaWiki 1.18.0http://wiki3.caucho.com/index.php?title=Selecting_a_Backend_Server&diff=3213&oldid=prevFerg at 09:54, 14 January 20092009-01-14T09:54:26Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:54, 14 January 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category: HowTo]] [[Category: Cluster]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>In testing situations, it can be important to select a particular backend server when making a request of the front-end server.  The easiest solution is to take advantage of [[sticky sessions]] and use the ";jsessionid=" url.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>In testing situations, it can be important to select a particular backend server when making a request of the front-end server.  The easiest solution is to take advantage of [[sticky sessions]] and use the ";jsessionid=" url.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Ferghttp://wiki3.caucho.com/index.php?title=Selecting_a_Backend_Server&diff=3212&oldid=prevFerg at 09:54, 14 January 20092009-01-14T09:54:05Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:54, 14 January 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Supposed in the following cluster of three backend servers, you wanted to test the second one, i.e. the one listening to 192.168.0.11.  You could send a request to "/test.jsp;jsessionid=bXXXX".</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Supposed in the following cluster of three backend servers, you wanted to test the second one, i.e. the one listening to 192.168.0.11.  You could send a request to "/test.jsp;jsessionid=bXXXX".</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>  <<del class="diffchange diffchange-inline">cluster</del>></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=== resin.xml ===</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>   <<del class="diffchange diffchange-inline">srun </del>id="a" <del class="diffchange diffchange-inline">host</del>="192.168.0.10" port="<del class="diffchange diffchange-inline">6802</del>"/></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">  </del><<del class="diffchange diffchange-inline">srun </del>id="b" <del class="diffchange diffchange-inline">host</del>="192.168.0.11" port="<del class="diffchange diffchange-inline">6803</del>"/></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>  <<ins class="diffchange diffchange-inline">resin xmlns="http://caucho.com/ns/resin"</ins>></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">  </del><<del class="diffchange diffchange-inline">srun </del>id="c" <del class="diffchange diffchange-inline">host</del>="192.168.0.12" port="<del class="diffchange diffchange-inline">6804</del>"/></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    ...</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> </del></cluster></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>   <<ins class="diffchange diffchange-inline">cluster></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    <server </ins>id="a" <ins class="diffchange diffchange-inline">address</ins>="192.168.0.10" port="<ins class="diffchange diffchange-inline">6800</ins>"/></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    </ins><<ins class="diffchange diffchange-inline">server </ins>id="b" <ins class="diffchange diffchange-inline">address</ins>="192.168.0.11" port="<ins class="diffchange diffchange-inline">6801</ins>"/></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    </ins><<ins class="diffchange diffchange-inline">server </ins>id="c" <ins class="diffchange diffchange-inline">address</ins>="192.168.0.12" port="<ins class="diffchange diffchange-inline">6802</ins>"/></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">      ...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    </ins></cluster<ins class="diffchange diffchange-inline">></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">  </resin</ins>></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The 'b' will select the second server.  Because that request uses URL rewriting and also because "bXXXX" value is too short, Resin will generate a new session instead of using the cookie value of "bXXXX".</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The 'b' will select the second server.  Because that request uses URL rewriting and also because "bXXXX" value is too short, Resin will generate a new session instead of using the cookie value of "bXXXX".</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Note, the non-reuse of the session value "bXXXX" is affected by the <[[reuse-session-id]]> configuration.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Note, the non-reuse of the session value "bXXXX" is affected by the <[[reuse-session-id]]> configuration.</div></td></tr>
</table>Ferghttp://wiki3.caucho.com/index.php?title=Selecting_a_Backend_Server&diff=1385&oldid=prevFerg at 05:00, 17 November 20052005-11-17T05:00:45Z<p></p>
<p><b>New page</b></p><div>In testing situations, it can be important to select a particular backend server when making a request of the front-end server. The easiest solution is to take advantage of [[sticky sessions]] and use the ";jsessionid=" url.<br />
<br />
Supposed in the following cluster of three backend servers, you wanted to test the second one, i.e. the one listening to 192.168.0.11. You could send a request to "/test.jsp;jsessionid=bXXXX".<br />
<br />
<cluster><br />
<srun id="a" host="192.168.0.10" port="6802"/><br />
<srun id="b" host="192.168.0.11" port="6803"/><br />
<srun id="c" host="192.168.0.12" port="6804"/><br />
</cluster><br />
<br />
The 'b' will select the second server. Because that request uses URL rewriting and also because "bXXXX" value is too short, Resin will generate a new session instead of using the cookie value of "bXXXX".<br />
<br />
Note, the non-reuse of the session value "bXXXX" is affected by the <[[reuse-session-id]]> configuration.</div>Ferg