Technical data

90 Brocade ServerIron ADX Advanced Server Load Balancing Guide
53-1003441-01
Cache persistence using URL hashing
2
The following example directs the ServerIron ADX to hash on the complete URL when the conditions
in the “r1” CSW rule is met.
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 complete
Syntax: [no] hash-persist url method
The method variable can be one of the following:
complete
path-only
path-and-parameters - default value
host-only
host-and-path
For example, when a client tries to connect to http://login.example3.com/config/mail?.src=ym, the
HTTP requests can come in two different ways:
1. Get http://login.example3.com/config/mail?.src=ym HTTP 1.1
2. Get /config/mail?.src=ym
Host: login.brocade.com
The following table demonstrates which part of the string would be used for hashing either of the
prior examples depending the method selected with the csw-hash url command.
Cache persistence using hashing on a portion of the URL
You can be more specific about the information in the URL that you want to determine traffic
distribution for by parsing the URL string. This is done by specifying a “pattern-string” and parsing
the URL string using a delimiter or an length limit. You can either parse the entire URL string or only
the “host-only” portion of the string.
the hash-persist url search-url command is used where the entire URL is being parsed.
the hash-persist url search-host command is used where the host portion of the URL is being
parsed.
TABLE 6 Hashing methods
Method String used for hashing
Complete login.brocade.com/confg/mail?.src=ym
path-only config/mail
path-and-parameters confg/mail?.src=ym
host-only login.brocade.com
host-and-path login.brocade.com/confg/mail