Mantis - Resin
Viewing Issue Advanced Details
917 minor always 02-06-06 08:55 02-27-06 12:39
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.0.18  
0000917: cookie change stops sticky-sessions for mod_caucho
(rep by Jaakko Saari)


My problem is that if I change session cookie name, mod_caucho stops handling sticky sessions correctly and does just round robin balancing.

httpd.conf:
..
ResinConfigServer 10.10.10.11 5002
ResinConfigServer 10.10.10.12 5004
..

resin.conf node1:
..
<server>
 <http port="8101" host="10.10.10.11" id="1"/>

   <!--
      - The local cluster, used for load balancing and distributed
      - backup.
     -->
   <cluster>
     <srun id="1" host="10.10.10.11" port="5002" index="1"/>
           <srun id="2" host="10.10.10.12" port="5004" index="2"/> </cluster>

     <session-cookie>CUSTOM</session-cookie>
..
</server>
  resin.conf node2:
..
<server>
 <http port="8101" host="10.10.10.12" id="2"/>

   <!--
      - The local cluster, used for load balancing and distributed
      - backup.
     -->
   <cluster>
     <srun id="1" host="10.10.10.11" port="5002" index="1"/>
           <srun id="2" host="10.10.10.12" port="5004" index="2"/> </cluster>

     <session-cookie>CUSTOM</session-cookie>
..
</server>
  If I remove the session-cookie tag the sticky sessions work okay, I also tried using CauchoHost in httpd.conf and defining just one node in <cluster> but no help.

This works fine in resin 2.x, but then again 2.x mod_caucho reads the local resin.conf where the session-cookie is set.
  I've been testing this with 3.0.12 and the latest snapshot, help please :-).


There are no notes attached to this issue.