cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
570
Views
0
Helpful
1
Replies

Cookie insert on ACE

westoncui
Level 1
Level 1

Hi,

We are using an ACE engine module(ACE20-MOD-K9) provide loading balancing service for two WEB servers and configured cookie for stickness. Below is the current configuration and it seems working fine now.

The problem I was facing is before use parameter-map change the http header length to 8k the stickness doesn't really working properly. User complains that their working session constantly be kicked out and redirect them to login page. By tracing traffic from a client we found that sometime ACE fails or stop insert the configured cookie, after increase the header length ACE start getting work.

Here my question is, how does the header length setup effect ACE to insert a cookie? Will the cookie insert attmpt fail if the header is longer then the maximum length configured on ACE?

sticky http-cookie appweb.apps.com appweb.apps.com_80

  cookie insert

  replicate sticky

  serverfarm appweb.apps.com_80

parameter-map type http COOKIE_PAR

  case-insensitive

  persistence-rebalance

  set header-maxparse-length 8196

  set content-maxparse-length 8096

  length-exceed continue

policy-map multi-match global

  class SNAT

    nat dynamic 1 vlan 102

  class vip_appweb.apps.com_80

    loadbalance vip inservice

    loadbalance policy lb_appweb.apps.com_80

    loadbalance vip icmp-reply active

    appl-parameter http advanced-options COOKIE_PAR

policy-map type loadbalance first-match lb_appweb.apps.com_80

  class class-default

    sticky-serverfarm appweb.apps.com_80

class-map match-any vip_appweb.apps.com_80

  2 match virtual-address 192.168.120.23 tcp eq www

1 Reply 1

Cesar Roque
Level 4
Level 4

Hi Smith,

The 'header-maxparse-length' is used to determine how many bytes the ACE parses to 
check for a cookie, HTTP header, or URL.

Probably the ACE was not able to find the cookie with the default values, meaning that the bytes it was buffering were not enough to find the cookie.

---------------------
Cesar R
ANS Team

--------------------- Cesar R ANS Team
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: