Cisco CSS 11501 Getting Started Guide - Page 78

Advanced Load-Balancing Method Using Cookies

Page 78 highlights

Advanced Load-Balancing Method Using Cookies Chapter 4 Configuring Sticky Cookies Stickiness is the association between a client and a server that the CSS maintains during a session. Stickiness enables transactions over the Web because the client must remain on the same server for the entire session. Depending on the content rule, the CSS "sticks" a client to an appropriate server after the CSS has determined which load-balancing method to use. If the CSS determines that a client is already stuck to a particular service, then the CSS places the client request on that service, regardless of the load balancing criteria specified by the matched content rule. If the CSS determines that the client is not stuck to a particular service, it applies normal load balancing to the content request. Client cookies uniquely identify clients to the services providing content. A cookie is a small data structure used by a server to deliver data to a Web client and request that the client store the information. In certain applications, the client returns the information to the server to maintain the state between the client and the server. When the CSS examines a request for content and determines through content rule matching that the content is sticky, it examines any cookie or URL present in the content request. The CSS uses this information to place the content request on the appropriate server. Advanced Load-Balancing Method Using Cookies A content rule is "sticky" when additional sessions from the same user or client are sent to the same service as the first connection, overriding normal load balancing. By default, the advanced balancing method is disabled. Use the advanced-balance command to specify an advanced load-balancing method for a content rule that includes stickiness. The advanced-balance command options (cookies, cookieurl, and url) use strings for sticking clients to servers. These options are beneficial when the sticky table limit is too small for your application requirements because the string methods do not use the sticky table. Cisco Content Services Switch Getting Started Guide 4-2 OL-6037-01

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142

Chapter 4
Configuring Sticky Cookies
Advanced Load-Balancing Method Using Cookies
4-2
Cisco Content Services Switch Getting Started Guide
OL-6037-01
Stickiness is the association between a client and a server that the CSS maintains
during a session. Stickiness enables transactions over the Web because the client
must remain on the same server for the entire session. Depending on the content
rule, the CSS “sticks” a client to an appropriate server after the CSS has
determined which load-balancing method to use.
If the CSS determines that a client is already stuck to a particular service, then the
CSS places the client request on that service, regardless of the load balancing
criteria specified by the matched content rule. If the CSS determines that the client
is not stuck to a particular service, it applies normal load balancing to the content
request.
Client
cookies
uniquely identify clients to the services providing content. A
cookie is a small data structure used by a server to deliver data to a Web client and
request that the client store the information. In certain applications, the client
returns the information to the server to maintain the state between the client and
the server.
When the CSS examines a request for content and determines through content rule
matching that the content is sticky, it examines any cookie or URL present in the
content request. The CSS uses this information to place the content request on the
appropriate server.
Advanced Load-Balancing Method Using Cookies
A content rule is “sticky” when additional sessions from the same user or client
are sent to the same service as the first connection, overriding normal load
balancing. By default, the advanced balancing method is disabled.
Use the
advanced-balance
command to specify an advanced load-balancing
method for a content rule that includes stickiness. The
advanced-balance
command options (
cookies
,
cookieurl
, and
url
) use strings for sticking clients to
servers. These options are beneficial when the sticky table limit is too small for
your application requirements because the string methods do not use the sticky
table.