httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sol myr <>
Subject Re: [users@httpd] Customized Stickiness
Date Mon, 24 Sep 2012 14:27:15 GMT
Thanks very much.
Would you happen to know if there's a way to control stickiness if my cookies don't include
a ".route", I mean they can't be in the format "cookie.route"?

But your original reply is appreciated regardless, thanks very much.

----- Original Message -----
From: Daniel Ruggeri <>
Sent: Thursday, September 13, 2012 1:41 AM
Subject: Re: [users@httpd] Customized Stickiness

On 9/12/2012 9:14 AM, sol myr wrote:
> Now we'd like the load-balancer to make sure all requests from the same city - go to
the same Tomcat.
> E.g:
> - All requests from NY (namely with cookie "city=NY" go to the same Tomcat
> - All requests from Paris (namely with cookie "city=Paris" go to the same Tomcat
> - We don't mind which tomcat... just never to find 2 new yorkers connected to different

If you can control the cookie Tomcat sets and set it to be
"city=<something>.city" you can set the balancer configuration like so:

LoadModule headers_module modules/
<Proxy balancer://AppCluster>
   BalancerMember route=NY
   BalancerMember route=Paris
   ProxySet stickysession=city

This way, when Tomcat sets the cookie called "city", httpd will parse
the cookie looking for the route (after the "." in the cookie value) and
match it to the BalancerMember being used.

Daniel Ruggeri

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message