Looking for basic cfg for CSM 4.2(2) with sticky

Answered Question
Oct 16th, 2008

Hi All,

I'm relatively new to CSMs and I'm attempting to fathom-out the differences between sticky & persistence.

However, all I really need at this stage is a basic, frills-free, cfg (if anyone has one) for one vserver and two real-servers, that provides users with stickiness to the same server. I don't think 'persistence rebalance' is required but do I need to configure a sticky-group?

I thought that maybe sticky-cookie is on by default? Or in other words does the CSM provide a stickiness method by default?

An easy question, I'm sure, but I'm running in circles with no test facilities available.

Many thx

David

I have this problem too.
0 votes
Correct Answer by Syed Iftekhar Ahmed about 8 years 1 month ago

************ SRC IP based based persistence *******************

sticky 10 netmask 255.0.0.0 timeout 5

serverfarm APP1-Servers

nat server

no nat client

probe HTTP-APP1

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 10

serverfarm APP1-Servers

persistent rebalance

inservice

************ cookie based persistence *******************

sticky 15 cookie Mycookie timeout 5

serverfarm APP1-Servers

nat server

no nat client

probe HTTP-APP1

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 15

serverfarm APP1-Servers

persistent rebalance

inservice

************** Cookie Insert *********************

sticky 17 cookie APP1Cookie insert timeout 30

serverfarm APP1-Servers

nat server

no nat client

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 17

serverfarm APP1-Servers

persistent rebalance

inservice

A good example you can find at

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/csm/4.2.x/configuration/guide/cfgxpls.html#wp1007597

HTH

Syed Iftekhar Ahmed

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Syed Iftekhar Ahmed Thu, 10/16/2008 - 22:01

************ SRC IP based based persistence *******************

sticky 10 netmask 255.0.0.0 timeout 5

serverfarm APP1-Servers

nat server

no nat client

probe HTTP-APP1

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 10

serverfarm APP1-Servers

persistent rebalance

inservice

************ cookie based persistence *******************

sticky 15 cookie Mycookie timeout 5

serverfarm APP1-Servers

nat server

no nat client

probe HTTP-APP1

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 15

serverfarm APP1-Servers

persistent rebalance

inservice

************** Cookie Insert *********************

sticky 17 cookie APP1Cookie insert timeout 30

serverfarm APP1-Servers

nat server

no nat client

real 1.1.1.1

inservice

real 1.1.1.2

inservice

vserver APP1-VSERVER

virtual 10.10.10.1 tcp WWW

sticky 5 group 17

serverfarm APP1-Servers

persistent rebalance

inservice

A good example you can find at

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/csm/4.2.x/configuration/guide/cfgxpls.html#wp1007597

HTH

Syed Iftekhar Ahmed

Actions

This Discussion