Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 89

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 88
ServerIron ADX Advanced Server Load Balancing Guide 77
53-1002435-01
Content aware cache switching
2
ServerIronADX(config)# csw-rule r1 url pattern “asp”
ServerIronADX(config)# csw-policy policyA1
ServerIronADX(config-csw-policyA1)# match forward 0
ServerIronADX(config-csw-policyA1)# default forward 100
ServerIronADX(config-csw-policyA1)# exit
The pattern method in the command causes the policy to look for the selection criteria anywhere
within the URL string.
The match forward 0 command looks for URL strings that contain the text "asp"; for example,
/active/q.asp?ln=fdry. These HTTP requests are sent to the Internet.
The default forward 100 command sends HTTP requests that do not meet the selection criteria in
policyA1’s match command server group ID = 100.
Configuring the cache servers
To place the cache servers in Figure 20 on page 76 into server group ID = 100, enter the following
commands.
ServerIronADX(config)# server cache-name CacheServer1 192.168.1.101
ServerIronADX(config-rs-CacheServer1)# port http group-id 100 100
ServerIronADX(config-rs-CacheServer1)# exit
ServerIronADX(config)# server cache-name CacheServer5 192.168.1.102
ServerIronADX(config-rs-CacheServer5)# port http group-id 100 100
ServerIronADX(config-rs-CacheServer5)# exit
ServerIronADX(config)# server cache-name CacheServer6 192.168.1.103
ServerIronADX(config-rs-CacheServer6)# port http group-id 100 100
ServerIronADX(config-rs-CacheServer6)# exit
Assigning the cache servers to a cache group
To activate the configuration shown in Figure 20, enter the following commands.
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)# http-cache-control
ServerIronADX(config-tc-1)# csw
ServerIronADX(config-tc-1)# csw-policy policyA1
Syntax: [no] http-cache-control
The http-cache-control command ensures that HTTP 1.0 requests that have a pragma:no-cache
header and HTTP 1.1 requests that have a Cache-Control header containing a no-cache directive
are sent to the Internet. This is the default behavior. To configure the ServerIron ADX to ignore the
pragma:no-cache or Cache-Control header in an HTTP request, use the no http-cache-control
command.
HTTP 1.1 support for content aware cache switching
Beginning with release 12.4.00, HTTP keep-alive mode is enabled by default for content aware
cache switching. This has been added to fully support HTTP 1.1 for TCS CSW; Unlike the operation
in previous releases of ServerIron ADX, the client request isn’t downgraded to HTTP 1.0 and the
connection header is unmodified. The client will send subsequent requests over the same TCP
connection if the server supports HTTP keep-alive. The ServerIron ADX software will maintain HTTP
Page view 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 135 136

Comments to this Manuals

No comments