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

CSS sticky-srcip-dstport problem....

shinwoo_acdc77
Level 1
Level 1

topology

real server : 2

contents configuration

owner test

content web_service

add service server1

add service server2

vip address 172.25.1.1

port 80

protocol tcp

advanced-balance sticky-srcip-dstport

active

slb not work!!!

CSS11503# sh service summary

Service Name State Conn Weight Avg State

Load Transitions

server1 Alive 12 1 56 100

server2 Alive 0 1 2 84

conn problem.. why.. please help

3 Replies 3

Gilles Dufour
Cisco Employee
Cisco Employee

I believe your Cisco SE forwarded the same question to me.

Here is the answer I gave him :

with sticky source ip, this output is most probably normal.

Let's say you have 4 clients, A,B,C,D.

They all open 2 connections to the VIP.

You will have on server 1 - AACC and on server 2 BBDD.

Now, let's say B and D decides to close the connections while C stays connected and A decides to open 2 more connections.

Because of stickyness the new connections from A will be sent to server1.

You end up with server1: AAAACC and server2: - no connections.

This is even worst if a server goes down.

Assume only server1 is up.

All clients open a connection. Because server2 is down, all the connection are sent to server1.

Because of stickyness, when server2 comes back up, all connections from A,B,C,D are still forwarded to server1.

I see your servers had a lot of transitions.

So you might have a sticky table that forwards most of the traffic to server1.

You should configure a sticky timeout, so that the sticky table can be refreshed.

Here is the command that you need :

CSS11503-2(config-owner-content[gdufour-WWW])# sticky-inact-timeout ?

Integer value(Range: 0-65535)

CSS11503-2(config-owner-content[gdufour-WWW])# sticky-inact-timeout

And clear the sticky table manually if you want to start fresh immediately.

Gilles.

How can I setup to clear the sticky table a 3am every day?

Thanks

you'll have to use the 'cmd-sched' command to setup a scheduler that runs a script with the correct command to clear the sticky table.

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: