cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1313
Views
5
Helpful
1
Replies

CSM: Sticky timeout parameter: difference between sticky group and vserver

wim.juste
Level 1
Level 1

Hi,

Concerning the example in the CSM manual about configuration of stickiness:

What (or why) is exactly the difference between the timeout parameter (100 minutes):

sticky 12 cookie foo timeout 100 AND the sticky 50 group 12 in the vserver.

The timeout parameter is overruled in the vserver configuration. (100 -> 50)

For what could this be usefull?

Thank you!

Kind regards,

Wim

-----

This example shows how to configure a virtual server named barnett, associate it with the server farm

named bosco, and configure a sticky connection with a duration of 50 minutes to sticky group 12:

Router(config)# mod csm 2

Router(config-module-csm)# sticky 12 cookie foo timeout 100

Router(config-module-csm)# exit

Router(config-module-csm)#

Router(config-module-csm)# serverfarm bosco

Router(config-slb-sfarm)# real 10.1.0.105

Router(config-slb-real)# inservice

Router(config-slb-real)# exit

Router(config-slb-sfarm)#

Router(config-slb-sfarm)# vserver barnett

Router(config-slb-vserver)# virtual 10.1.0.85 tcp 80

Router(config-slb-vserver)# serverfarm bosco

Router(config-slb-vserver)# sticky 50 group 12

Router(config-slb-vserver)# inservice

Router(config-slb-vserver)# exit

Router(config-module-csm)# end

1 Accepted Solution

Accepted Solutions

Gilles Dufour
Cisco Employee
Cisco Employee

if you configure the group under a policy, there is no option for the timeout.

This is why the option exist under the stick-group.

In the vserver, you can overrid this timeout - so the timeout is per vserver.

If you want the same timeout, just configure the same value.

gdufour-cat6k-2(config-module-csm)#policy test1

gdufour-cat6k-2(config-slb-policy)#sticky-group ?

<1-255> sticky group ID

gdufour-cat6k-2(config-slb-policy)#sticky-group 12 ?

Gilles.

View solution in original post

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

if you configure the group under a policy, there is no option for the timeout.

This is why the option exist under the stick-group.

In the vserver, you can overrid this timeout - so the timeout is per vserver.

If you want the same timeout, just configure the same value.

gdufour-cat6k-2(config-module-csm)#policy test1

gdufour-cat6k-2(config-slb-policy)#sticky-group ?

<1-255> sticky group ID

gdufour-cat6k-2(config-slb-policy)#sticky-group 12 ?

Gilles.