cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
534
Views
0
Helpful
4
Replies

Cookie stickiness on ACE

admin_2
Level 3
Level 3

Hi:

I have the following configuration. Although the users can hit the web server, the stickiness doesn't work.

sticky http-cookie TEST1 TEST1

timeout 300

replicate sticky

serverfarm PROXY

policy-map type loadbalance first-match L7_TEMPORAL

class HTTP-TEMPORAL

sticky-serverfarm TEST1

policy-map multi-match L4-VIP-LB-Policy

class VIP-TEMPORAL

loadbalance policy L7_TEMPORAL

Raul

4 Replies 4

Roble Mumin
Level 3
Level 3

Not sure if you already did that but to make stickiness work you need to assign resources for stickiness per context. Have look at the link.

http://www.cisco.com/en/US/products/hw/modules/ps2706/products_configuration_guide_chapter09186a0080686ebf.html#wp1051078

sticky http-cookie TEST1 TEST1 says the ace is looking for a cookie named "TEST1" in the http header so you should make sure that cookie exists. Otherwise add a "cookie insert" and the ace should insert that a cookie named "TEST1" then.

http://www.cisco.com/en/US/products/hw/modules/ps2706/products_configuration_guide_chapter09186a0080686ebf.html#wp1015713

[quote]

The name argument in the sticky command specifies the cookie name that appears in the HTTP header. The name argument in the cookie secondary command specifies the cookie name that appears in the URL.

[/quote]

Roble

You were right, the cookie didn't exist. I use the right name, and it started to work.

Thanks

Gilles Dufour
Cisco Employee
Cisco Employee

Raul,

you might want to add 'cookie insert' under the sticky configuration if you want the ACE module to generate the cookie itself.

Gilles.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: