Technical data
92 Brocade ServerIron ADX Advanced Server Load Balancing Guide
53-1003441-01
Cache persistence using URL hashing
2
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 with the value “&”.
NOTE
Because 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
delimiter “&”
Syntax: [no] hash-persist url search-url pattern-string offset offset-value delimiter delimiter-string
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 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 variable. 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
Because 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.










