Summary: | mod_proxy_balancer does not handle sticky sessions with tomcat correctly | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Christoph Bachhuber-Haller <bachhube> |
Component: | mod_proxy_balancer | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | bachhube |
Priority: | P2 | Keywords: | PatchAvailable |
Version: | 2.1-HEAD | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | Patch against trunk |
Description
Christoph Bachhuber-Haller
2005-09-05 17:41:35 UTC
Created attachment 16546 [details]
Patch against trunk
I can confirm this problem.
The attached patch should fix this. Can you please give it a try?
Hi Ruediger, (In reply to comment #1) > Created an attachment (id=16546) [edit] > Patch against trunk > > I can confirm this problem. > The attached patch should fix this. Can you please give it a try? I can confirm that this patch fixes my problem. Thank you very much! I wonder though whether the tomcat session id format is any standard or if apache should support sticky sessions for load balancing in a more generic way. Bye, Christoph Committed to trunk (r295013) http://svn.apache.org/viewcvs.cgi/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=295013&r1=279973&r2=295013 Committed and backported to 2.2.x branch (r306888). > though whether the tomcat session id format is any standard or if apache should
> support sticky sessions for load balancing in a more generic way.
It does. As you can choose the name of the cookie you can make any application
where you can set a cookie work with that. Just set cookie BLAH=a.route in your
application. Of course it is more convenient if the application container is
able to do this (like Tomcat). BTW: I know no standard for coding such routing
information inside a cookie. But if you know one I would be interested to get it
known.
|