Technical data

Brocade ServerIron ADX Advanced Server Load Balancing Guide 83
53-1003441-01
Content-aware cache switching
2
ServerIronADX(config-rs-CacheServer3)#port http group-id 2 2
ServerIronADX(config-rs-CacheServer3)#exit
Assigning the cache servers to a cache group
To activate content-aware cache switching (as in Figure 21), you create a cache group, assign the
cache servers to that group, and specify a CSW policy to be active for the cache group, such as in
the following example.
ServerIronADX(config)#server cache-group 1
ServerIronADX(config-tc-1)#cache-name CacheServer1
ServerIronADX(config-tc-1)#cache-name CacheServer2
ServerIronADX(config-tc-1)#cache-name CacheServer3
ServerIronADX(config-tc-1)#csw
ServerIronADX(config-tc-1)#csw-policy p1
Syntax: csw
Syntax: csw-policy policy-name
Configuring group-failover
When CSW rules are enabled with TCS, the ServerIron ADX tries to select a cache server with a
'server group-id' as specified by the CSW policy. By default, if no cache server is found in the server
group then the request is bypassed to the Internet.
When the group-failover feature is enabled, the ServerIron ADX behaves in the following manner:
If a cache server is found with the matching server group-id, then the HTTP request is
forwarded to that cache server.
If a cache server with the matching server group-id is not found, but a default CSW rule with
forward action is specified, then the HTTP request is forwarded to a cache server defined
inside the default rule.
If a cache server with the matching server group-id is not found, and a default CSW rule with
forward action is not specified, then the HTTP request is forwarded to any available cache
server within the cache-group.
This process is demonstrated in the configuration described in: “group-failover example”.
To enable group failover, enter commands such as the following:
ServerIron(config)#server cache-group 1
ServerIron(config-tc-1)#group-failover
ServerIron(config-tc-1)#
Syntax: [no] group-failover
group-failover example
Given the following TCS configuration:
ServerIron(config)#csw-policy policy1
ServerIron(config-csw-policy1)#match rule1 forward 1
ServerIron(config-csw-policy1)#default forward 2
ServerIron(config-csw-policy1)#exit
ServerIron(config)#server cache-name Cache1 10.1.1.11
ServerIron(config-rs-Cache1)#port http url "HEAD /"
ServerIron(config-rs-Cache1)#port http group-id 1 1