Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 132

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 131
120 ServerIron ADX Advanced Server Load Balancing Guide
53-1002435-01
Cache Persistence using URL Hashing
2
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> value is
empty, the system will look to the end of the URL 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 value 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
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v=” offset 0
length 8
Syntax: [no] hash-persist url search-url <pattern-string> offset <offset-value> length <length>
The contents and operation 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> variable 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 the number of
characters defined by the value of the <length> variable. The value of the <length> variable must
be greater than 0 (zero). If the value of the <length> variable extends beyond the length of the URL,
the system will look to the end of the URL to define the string used for hashing.
Examples for parsing on the entire URL
In the following example, the client tries to connect to youtube at the following URL.
http://www.youtube.com/watch?v=bUfp24dwzOA&playnext=1&videos=XA7MyzKoQXQ&feature=
featured
Table 10 displays the contents of the strings used for hashing if the <pattern-string> variable is set
to “v=” and the offset value is set to “0” depending on the method used. The methods and
commands required are described as follows.
Parsing using the “pattern string” only
ServerIronADX(config)# csw-policy p1
ServerIronADX(config-csw-p1)# match r1 forward 1
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v=” offset 0
Parsing using the “pattern string” with a delimiter
ServerIronADX(config)# csw-policy p1
ServerIronADX(config-csw-p1)# match r1 forward 1
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v=” offset 0
delimiter “v=”
Parsing using the “pattern string” with a specified string length
ServerIronADX(config)# csw-policy p1
Page view 131
1 2 ... 127 128 129 130 131 132 133 134 135 136

Comments to this Manuals

No comments