Bug 39304 - Sticky session nto working when sharing balancers accross vhosts
Summary: Sticky session nto working when sharing balancers accross vhosts
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_balancer (show other bugs)
Version: 2.2.0
Hardware: All Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-13 15:56 UTC by Fran
Modified: 2006-04-14 07:11 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fran 2006-04-13 15:56:10 UTC
I would like to share balancers accros several vhosts :

<Proxy balancer://cluster>
BalancerMember ajp://192.168.15.196:8538
BalancerMember ajp://192.168.15.197:8538
</Proxy>

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName my.firstsite.com
<Location />
ProxyPass balancer://cluster/bm stickysession=jsessionid nofailover=On
</Location>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName my.secondsite.com
<Location />
Proxypass balancer://cluster/best stickysession=jsessionid nofailover=On
</Location>
</VirtualHost>

But, then, if I use the balancer-manager to see if the stickysession parameter
is properly set, it does not. If I submit it with the balancer-manager
interface, it does not always keep it.

I feel that stickysession should be a balancer attribute, not a Proxypass one.

I saw the same question 3 weeks ago on comp.apache.devel with no answer...

Is there a way to do it?

François.
Comment 1 Ruediger Pluem 2006-04-14 12:02:53 UTC
Does it work if you use the following configuration?

<Proxy balancer://cluster>
BalancerMember ajp://192.168.15.196:8538
BalancerMember ajp://192.168.15.197:8538
ProxySet stickysession=jsessionid nofailover=On
</Proxy>

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName my.firstsite.com
<Location />
ProxyPass balancer://cluster/bm stickysession=jsessionid nofailover=On
</Location>
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName my.secondsite.com
<Location />
Proxypass balancer://cluster/best stickysession=jsessionid nofailover=On
</Location>
</VirtualHost>

Please keep in minds my comments regarding session routes at
http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c4 before trying.
Comment 2 Fran 2006-04-14 13:54:06 UTC
Please add the ProxySet directive to the documentation :).

This does not solve my problem exposed in #38357. Stickysession is not working.
Comment 3 Ruediger Pluem 2006-04-14 14:06:43 UTC
(In reply to comment #2)
> Please add the ProxySet directive to the documentation :).

Yes, I know that it is missing :-)

> 
> This does not solve my problem exposed in #38357. Stickysession is not working.

Have you added a session route to your jsessionid as mentioned in
http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c4? If yes, and it still
does not work please add the log outputs to #38357 as you did in
http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c3.

Comment 4 Fran 2006-04-14 14:11:47 UTC
Using the jvmRoute in tomcat solved it.

Thank you for your help.

So, just a documentation problem :).

François.