[Yanel-usage] Tomcat and Sticky Sessions

Cedric Staub cedric.staub at wyona.com
Wed Feb 9 12:21:02 CET 2011


On Wed, Feb 09, 2011 at 11:14:20AM +0000, Michael Wechner wrote:
> IIRC we are using mod_balance together with mod_proxy on the wyona.com 
> website and
> we don't have the issues you are describing above.

Yeah, I just switched to mod_proxy and it's so much nicer.

> Thinking about not being sticky it shouldn't be a problem though, 
> because actually
> the sessions should be serialized at any change and hence you should not 
> loose your session when
> swapped from one node to the other. But maybe that's just theory ;-)

That doesn't work. The JSESSIONID contains the jvmRoute (e.g. cnode1).
>From what I tried it looks like Tomcat discards cookies automatically if
the jvmRoute doesn't match... E.g., if I send JSESSIONID=XYZ.cnode1 to
another node that node will send me a new JSESSIONID.

But alas, mod_proxy works now :)

I wonder if mod_proxy is faster than the tomcat connector. Perhaps I
should re-run my JMeter tests.

BTW: I'm also working on a stress-test involving concurrent writing.

Cheers
Cedric


More information about the Yanel-usage mailing list