Project

General

Profile

Actions

Feature #959

closed

add jvmRoute support to mod_proxy_ajp13

Added by Anonymous over 17 years ago. Updated about 7 years ago.

Status:
Missing Feedback
Priority:
Low
Category:
mod_proxy
Target version:
-
ASK QUESTIONS IN Forums:

Description

jvmRoute is used for naming tomcat applications in a cluster. This allows for sessions against applications to be "sticky".
More documentation can be found here and here

-- Lfe


Related issues 1 (0 open1 closed)

Related to Feature #2117: Source IP sticky load balancing patchFixed2009-12-10Actions
Actions #1

Updated by Anonymous about 17 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

Actions #2

Updated by gstrauss almost 8 years ago

  • Description updated (diff)
  • Category changed from mod_proxy_backend_ajp13 to mod_proxy
  • Assignee deleted (jakabosky)
Actions #3

Updated by gstrauss about 7 years ago

  • Related to Feature #2117: Source IP sticky load balancing patch added
Actions #4

Updated by gstrauss about 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.

Actions

Also available in: Atom