cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
398
Views
0
Helpful
3
Replies

CSM and Sticky Cookie

aawilcox
Level 1
Level 1

I have a requirement to balance based on a Server supplied cookie. I have ten servers in my farm, each of which will set the SERVER= parameter in a server generated cookie to uniquely identify which server the client should be stuck to. I want the client to be stuck to the server for up to 60 minutes.

What configuration is required?

I currently have

sticky 10 cookie SERVER timeout 60

configured which seems to work. However, server administrators are reporting some users occasionally are getting stuck to the wrong server

3 Replies 3

Gilles Dufour
Cisco Employee
Cisco Employee

the CSM starts counting when the connection is open [not when it's closed].

So, if you keep a connection open 60 minutes, the entry will timeout at the same time as the connection is closed.

You may want to try to increase the timeout and see if that improves the situation.

If not, you will need to capture information about all traffic from a specific client having the issue.

A sniffer trace would be best.

Gilles.

Salut Gilles,

You mention that "the CSM starts counting when the connection is open [not when it's closed]"... but that conflicts with what I read in the online command reference:

"...If you specify a nonzero value, the last real server that was used for a connection from a client is remembered for the sticky-time value after the end of the client's latest connection."

I need to configure sticky based on source IP and want it to timeout 2 hours after the end of the connections (not 2 hours after the start). Will I achieve this with the following?

sticky 1 netmask /32 address source timeout 120

Thanks in advance!

Daniel

actually the default behavior is what I said but you can change it with the following variable :

NO_TIMEOUT_IP_STICKY_ENTRIES.

There is an explanation @

http://www.cisco.com/en/US/products/hw/switches/ps708/prod_release_note09186a00803d5590.html

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: