Feature #959
closedadd jvmRoute support to mod_proxy_ajp13
Description
Updated by Anonymous almost 18 years ago
As far as i know, this isn't very AJP specific. This could be used for all proxy directives which in some way uses cookies for session handling (quite common last i checked). "All" mod_jk does when balancing with jvmRoutes is matching a directive in server.xml (in a <Engine> directive) with a cookie for your session id which gets this specfic route appended (EG: JESSIONID = mycryptedid.jvmRoute).
A similar approach is found in many load balancers and is in my opinion very useful for other applications than ajp13 specific ones.
-- Lfe
Updated by gstrauss over 8 years ago
- Description updated (diff)
- Category changed from mod_proxy_backend_ajp13 to mod_proxy
- Assignee deleted (
jakabosky)
Updated by gstrauss over 7 years ago
- Related to Feature #2117: Source IP sticky load balancing patch added
Updated by gstrauss over 7 years ago
- Status changed from New to Missing Feedback
The links provided in the ticket description are not very useful. Quoting from one of the links given:
http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html
The route, as I understand it, is used to support sticky sessions -- associating a user's session with a particular Tomcat instance in the presence of multiple, load balancing servers. I don't know the details.
Better documentation can be found with this feature of the commercial version of nginx
https://www.nginx.com/products/session-persistence/
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky
mod_proxy "sticky" load balancing based on source IP was added to lighttpd 1.4.44
While not the same as jvmroutes, it does provide basic "sticky" load balancing.
For now, marking this ticket as "Missing Feedback". If there is demand for cookie-based "sticky" routing, bypassing existing the load-balancing schemes, please comment here and we might reconsider adding a feature to lighttpd to add a lighttpd-generated cookie to responses to route requests based on the cookie in a sticky fashion. However, such a feature is unlikely to be "jvmroute"-specific.
Also available in: Atom