Jump to content

stickysession persistance not working


var32

Recommended Posts

Hi all ,

This is my first post , home im in the right place .

here is the problem . i have 2 tomcat servers and apache HTTP server as LBS .

for some reason the stickysession does not work . i follow apache manual at

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#ProxyPass

if i'm using only cookie persistance it workes , but sometimes client come without cookie

but with the JSESSIONID in the URL . in this case they can move to other server.

if i use :

stickysession=JSESSIONID

the balancer stickysession workes only for cookie , and not for URL

and if i use

stickysession=JSESSIONID|jsessionid

the balancer act as round rubin without persistence.

 

here is the config :

ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On lbmethod=bytraffic
<Proxy balancer://mycluster>
BalancerMember http://172.16.2.160:8080 route=1
BalancerMember http://172.16.2.161:8080 route=2
</Proxy>

 

Is this a bug that i should be aware of ?

or if i'm setting it all wrong ?

please help

 

Thanks

var32

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.