cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
750
Views
0
Helpful
2
Replies

ACE Stickness differences

mohamed fayz
Level 1
Level 1

Hai,

Please anybody let me know the difference between sticky-serverfarm and  sticky-http cookie commands????

I had configured stick-serverfarm and called in the policy inorder for session persistance to a particular sever itself . but what is this mean by sticky-http cookie command ??

2 Replies 2

sivaksiv
Cisco Employee
Cisco Employee

Hi,

The Cisco ACE can be configured in various ways to apply session  persistence using cookies.  For this example cookie learning will be  used.  The cookie name ACE will attempt to learn is supplied when the  sticky group is created.  By default ACE learns cookies and these  entries have a idle timeout of 24 hours.  Using the configuration below  ACE will learn the value of a cookie with the name “JSessionID”.  The  session will timeout after 5 minutes of no new connections/requests  containing this cookie value.  The ACE will use a pre-existing  serverfarm named “webfarm”.

ACE-1/routed(config)# sticky http-cookie JSessionID web-sticky
ACE-1/routed(config-sticky-cookie)# timeout 5
ACE-1/routed(config-sticky-cookie)# serverfarm webfarm

The serverfarm within the load balancing policy map must be swapped  with the sticky group to apply cookie learning to new client requests.

ACE-1/routed(config)# policy-map type loadbalance http first-match slb-logic
ACE-1/routed(config-pmap-lb-c)# class class-default
ACE-1/routed(config-pmap-lb-c)# no serverfarm webfarm
ACE-1/routed(config-pmap-lb-c)# sticky-serverfarm web-sticky

HTH

-

Siva

Hai Siva,

I have one doubt, i configured on EMS application via ace load balancer in one arm mode. I applied using stickness also using the below command.

sticky ip-netmask 255.255.255.255 address source SF-WEB-STICKY

  timeout 600

  serverfarm EMS-SRV

and applied

policy-map type loadbalance first-match SRV-EMS-POLICY

  class class-default

    sticky-serverfarm SF-WEB-STICKY

Now, the customer is saying that, they are facing some delay in getting the page initially after its working fine. Again if they trying to acess the same web page after some time , the same delay is geting. Below is the web address

78.100.95.13:8090 can you please suggest any fine tune required for these??? the EMS application is run using asp.net and i assume its not normal like html web page !!!! please suggest!