
The Java standards implement URL encoding slightly different. This can have negative impact on performance though. This via the web server using mod_substitute or To each link is done by the back-end generating the content. URL links contained in responses, generally the work of adding the parameters Since it is not easy to extract and manipulate all The value of the parameter is used to lookup a member worker with routeĮqual to that value. The name of the parameter is specified again using stickysession. The web server searches for a query parameter in the URL of the request. The second way of implementing stickyness is URL encoding. (upper case) but can be configured to something else. Web applications based on servlets) is JSESSIONID The name of the session cookie used by Tomcat (and more generally by Java Route of the worker that connects to the respective Tomcat. Need to set the attribute jvmRoute inside the TomcatĬonfiguration file conf/server.xml to the value of the In order to let Tomcat know about its instance name, you Of the stickyness cookie, it only uses the part behind the dot to searchįor the route. Thus if the Apache web server finds a dot in the value

To the end of its session id cookie, separated with a dot (. Tomcat adds the name of the Tomcat instance Some back-ends use a slightly different form of stickyness cookie,įor instance Apache Tomcat. The route must also be set in eitherīe set by the back-end, or as shown in the above The balancer extracts the value of theĬookie and looks for a member worker with route equal This is done via the stickysession attribute added Name of the cookie that contains the information about which back-end When using cookie based stickyness, you need to configure the This can be used toĭetermine when/if the client needs to be sent an updated route Session does not yet have an established route. Worker route (BALANCER_SESSION_ROUTE != BALANCER_WORKER_ROUTE) or the This is set to 1 if the session route does not match the This is assigned the route of the worker that will be

The value is something like BALANCER_WORKER_ROUTE This is assigned the name of the worker used for the current request. The value is something like balancer://foo. This is assigned the name of the balancer used for the current This is assigned the route parsed from the current

It is the name of the cookie or request parameter used for sticky sessions BALANCER_SESSION_ROUTE This is assigned the stickysession value used for the current At present there are 6 environment variables exported: BALANCER_SESSION_STICKY
