Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 134

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 133
122 ServerIron ADX Advanced Server Load Balancing Guide
53-1002435-01
Cache Persistence using URL Hashing
2
system will start the second step. The second step in the process is to adjust the starting place on
the URL string by moving it by the number of characters defined by a value specified in the
<offset-value>. If the pattern string is empty, the system will not search the pattern part, and use
the beginning of URL string as the start point of the third step.
The <offset-value> is used to define how many characters will be skipped after the start point that
is defined by the pattern string. Normally this value is 0 (zero) which places the start point at the
beginning of the host string. A negative value can be used to move the starting place to the left in
the host string. If the <offset-value> is greater than the length of the rest of the URL, the system will
abort the rest of the searching steps, and start the next search (if configured). If another search
isn’t configured, the default hashing method is used. If the value of the <offset-value> variable is
within the length of the rest of the URL string, the system will skip to the offset place, and start the
third step.
With this command, the third step is for the system to look to the end of the host string to define
the string used for hashing.
Parsing using the “pattern string” with a delimiter
The following example identifies a pattern string to perform hashing on with an offset of “0” and a
delimiter value of “.”.
NOTE
Since hash-persist action is a secondary action, you must add a forward action as shown in the
following example, before adding a hash-persist action.
ServerIronADX(config)# csw-policy p1
ServerIronADX(config-csw-p1)# match r1 forward 1
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-host “www.” offset
0 delimiter “.”
Syntax: [no] hash-persist url search-url <pattern-string> offset <offset-value> delimiter
<delimiter-string>
The contents of the <pattern-string> variable is the same as described in “Parsing using the
“pattern string” only”.
The contents and operation of the <offset-value> is the same as described in “Parsing using the
“pattern string” only”.
With this command, the third step is for the system to parse the URL string up-to a character
defined by the value of the <delimiter-string>. The delimiter string is used to define the end pattern
after finding the substring. If the rest of URL string has multiple delimiter strings, only the first one
will be used. If the <delimiter-string> is not found, or the value of the <delimiter-string> variable is
empty, the system will look to the end of the host string to define the string used for hashing.
Parsing using the “pattern string” with a specified string length
The following example identifies a pattern string to perform hashing on with an offset of “0” and a
length of “8”.
NOTE
Since hash-persist action is a secondary action, you must add a forward action as shown in the
following example, before adding a hash-persist action.
ServerIronADX(config)# csw-policy p1
ServerIronADX(config-csw-p1)# match r1 forward 1
Page view 133
1 2 ... 129 130 131 132 133 134 135 136

Comments to this Manuals

No comments