Cisco CSS 11501 Getting Started Guide - Page 79
Sticky Based on a Con d String in an HTTP Cookie Header
UPC - 746320761664
View all Cisco CSS 11501 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 79 highlights
Chapter 4 Configuring Sticky Cookies Advanced Load-Balancing Method Using Cookies The following sections provide configuration information for: • Sticky Based on a Configured String in an HTTP Cookie Header, using the advance-balanced cookies command • Sticky Based on a Cookie in a URL, using the advance-balanced url command • Sticky Based on a Cookie in the HTTP Header or URL, using the advance-balanced cookieurl command For information on additional advanced load-balancing methods including arrowpoint cookies, refer to the Cisco Content Services Switch Content Load-Balancing Configuration Guide. Sticky Based on a Configured String in an HTTP Cookie Header If the server returns a cookie that is static and uniquely identifies itself, use the advanced-balance cookies command. This command enables the content rule to stick a client to a server based on the configured string found in the HTTP cookie header. A content rule with a sticky configuration set to advanced-balance cookies requires all clients to enable cookies on their browser. In the following configuration, the CSS looks for the cookie in the Cookie: field of the HTTP header: 1. The CSS looks for the configured string prefix, which is the cookie name. In this example, the string prefix in the content rule is MyCookie=. 2. If the CSS finds the prefix, then it looks for the value that matches one of the string values configured in one of the services. For example, the string value for service test 1 is server1. The CSS begins searching for the prefix and value at the beginning of the cookie field in the header and searches the entire field until the end of the field. If the HTTP header spans multiple packets, the CSS searches up to 5 packets by default; however, you can configure the CSS to search up to 20 packets (refer to the global spanning-packets command for more details). OL-6037-01 Cisco Content Services Switch Getting Started Guide 4-3