DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38357>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38357 ------- Additional Comments From [EMAIL PROTECTED] 2007-03-30 14:47 ------- (In reply to comment #8) > > This is really not obvious, and not described in the doc. :/ > > In our (I imagine common) setup, we assume the session ID will be sufficiently > unique such that we don't need to further discriminate between specific app servers. This is not the point. If you only use the random session ID string you run into the following problems that we avoid with our approach: 1. You need to store every session id in some sort of cache / hash and save to which worker it belongs. So in fact you need to store this information inside mod_proxy_balancer. Adding the name of the worker to the session id stores this information at the client side. 2. If you have multiple webservers with a loadbalancer in front you either need to configure stickyness on the loadbalancer or mod_proxy_balancer needs to use a shared session cache among multiple boxes which makes this a lot more complex. 3. If you do not have the shared session cache between the webservers shuting down one webserver will cause the stickyness lost for all the sessions that have been handled by this webserver. If your appserver cannot generate cookies which contain the required information you can use mod_header in conjunction with the environment variables set by mod_proxy_balancer (http://httpd.apache.org/docs/2.2/en/mod/mod_proxy_balancer.html#environment) to do this within httpd. Something like Header add Set-Cookie "MYCOOKIE=SOMEVALUE.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED and using MYCOOKIE as stickysession identifier. But I agree that the documentation regarding this could be improved. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
