Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 136

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 135
124 ServerIron ADX Advanced Server Load Balancing Guide
53-1002435-01
Cache Persistence using URL Hashing
2
ServerIron ADX supports multiple pattern search for the same rule. Support is provided for up to 4
different pattern strings as shown in the following example.
Selecting the IP addresses hash method
You can use the csw-hash ip-addresses command within the cache group configuration to perform
the hash using IP addresses.
ServerIronADX(config)# server cache-group 2
ServerIronADX(config-tc-1)# csw-hash ip-addresses
Syntax: [no] csw-hash ip-addresses
Force rehash
By default, the following will happen when the cache server goes down and goes up again:
When the cache server goes down, its hash bucket will be taken by other active cache server.
When a failed cache server comes up, the hash bucket will be allocated if, and only if, there
are hash buckets without server association. In most cases, where traffic is evenly spread,
none of the hash buckets will be available to the new server.
When a cache server goes down and up, the group hash table is not rehashed and the other server
won't be affected. This will make the ServerIron maintain the persistence of the cache servers.
Though in a situation where all of the hash table entries are taken by other cache servers, the
failed cache server may not be able to process traffic after it comes back to active. This also
applies to the situation that the new cache server is added to the group.
You can configure the entire hash table to be re-hashed when a new cache server is added or a
failed cache server recovers. Use the csw-force-rehash command within the cache group
configuration to enable automatic rehash of hash buckets.
ServerIronADX(config)# server cache-group 1
ServerIronADX(config-tc-1)# csw-force-rehash
Syntax: [no] csw-force-rehash
NOTE
This command generally disrupts the existing cache persistence.
ServerIronADX(config)# csw-policy p1
ServerIronADX(config-csw-p1)# match r1 forward 10
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v1” offset 0
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v2” offset 0
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v3” offset 0
delimiter “&”
ServerIronADX(config-csw-p1)# match r1 hash-persist url search-url “v4” offset 0
length 3
ServerIronADX(config-csw-p1)# match r2 forward 20
ServerIronADX(config-csw-p1)# match r2 hash-persist url search-host “m1” offset 0
ServerIronADX(config-csw-p1)# match r2 hash-persist url search-host “m2” offset 0
Page view 135
1 2 ... 131 132 133 134 135 136

Comments to this Manuals

No comments