Technical data

50 Brocade ServerIron ADX Advanced Server Load Balancing Guide
53-1003441-01
Other transparent cache switching options
2
NOTE
If multiple services use the hash method to select a cache server, Brocade recommends that you
group those services together using the hc-track-group command to maintain persistence of traffic
across those services. For example, both HTTP and HTTPS use hashing by default. To ensure that
traffic persists to the same cache servers, you should group these services together. For more
information on track port group health checks, see “Application port grouping” in the ServerIron ADX
Server Load Balancing Guide.
Examples
In the following example, SSL traffic uses the hash mechanism to select a cache server which is
the default action. SSL and HTTP traffic can use one hash table, This means that traffic having the
same hash value will go to the same cache server whether it is SSL traffic or HTTP traffic.
NOTE
This example shows commands that are valid on the ServerIron ADX device only when it is running
the Layer 3 router image.
ServerIronADX(config)#server cache-name cs1 192.168.0.1
ServerIronADX(config-rs-cs1)#port http
ServerIronADX(config-rs-cs1)#port http url "HEAD/"
ServerIronADX(config-rs-cs1)#port ssl
ServerIronADX(config-rs-cs1)#hc-track-group 80 443
ServerIronADX(config-rs-cs1)#exit
ServerIronADX(config)#server cache-name cs2 192.168.0.2
ServerIronADX(config-rs-cs2)#port http
ServerIronADX(config-rs-cs2)#port http url "HEAD/"
ServerIronADX(config-rs-cs2)#port ssl
ServerIronADX(config-rs-cs2)#hc-track-group 80 443
ServerIronADX(config-rs-cs2)#exit
In the following example, the cache selection method for the FTP protocol is changed to the hash
method and it uses the same hash table as the HTTP protocol. The telnet protocol continues to use
the least connection method, which is the default method for that protocol.
ServerIronADX(config)#server cache-name cs1 192.168.0.1
ServerIronADX(config-rs-cs1)#port http
ServerIronADX(config-rs-cs1)#port http url "HEAD/"
ServerIronADX(config-rs-cs1)#port ftp
ServerIronADX(config-rs-cs1)#port telnet
ServerIronADX(config-rs-cs1)#hc-track-group 80 21
ServerIronADX(config-rs-cs1)#exit
ServerIronADX(config)#server cache-name cs2 192.168.0.2
ServerIronADX(config-rs-cs2)#port http
ServerIronADX(config-rs-cs2)#port http url "HEAD/"
ServerIronADX(config-rs-cs2)#port ftp
ServerIronADX(config-rs-cs2)#port telnet
ServerIronADX(config-rs-cs2)#hc-track-group 80 21
ServerIronADX(config-rs-cs2)#exit