Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 135

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 134
ServerIron ADX Advanced Server Load Balancing Guide 123
53-1002435-01
Cache Persistence using URL Hashing
2
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-host “www.” offset
0 length 5
Syntax: [no] hash-persist url search-url <pattern-string> offset <offset-value> length <length>
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 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 host
string, the system will look to the end of the host string to define the string used for hashing.
Examples for parsing on the host string of the URL
In the following example, the client tries to connect to Brocade at the following URL.
http://www.brocade.com
Table 11 displays the contents of the stings used for hashing if the <pattern-string> variable is set
to “yahoo.com” 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-host “www.” 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-host “www.” offset
0 delimiter “.”
Parsing using the “pattern string” with a specified string length
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 length 5
Supporting multiple pattern search for the same rule
TABLE 11 Results for parsing the host string of a URL by method
Method String used for hashing
pattern string only brocade.com
pattern string with a
delimiter of “.”
brocade
pattern string with a
length value of 4”
broc
Page view 134
1 2 ... 130 131 132 133 134 135 136

Comments to this Manuals

No comments