05-31-2007 06:32 PM
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
06-01-2007 01:17 AM
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 ?
CSS11503-2(config-owner-content[gdufour-WWW])# sticky-inact-timeout
And clear the sticky table manually if you want to start fresh immediately.
Gilles.
06-07-2007 06:58 AM
How can I setup to clear the sticky table a 3am every day?
Thanks
06-07-2007 11:38 AM
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.
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: