Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 85

  • Download
  • Add to my manuals
  • Print
  • Page
    / 136
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 84
ServerIron ADX Advanced Server Load Balancing Guide 73
53-1002435-01
Content aware cache switching
2
Syntax: csw-rule r1 url prefix | suffix | pattern"<selection-criteria>"
Syntax: csw-policy <policy-name>
Syntax: match r1 forward <server-group-id>
Syntax: default forward<server-group-id>
The csw-rule r1 url suffix gif command consists of two parts. The first part specifies what kind of
matching the policy does on the selection criteria. Three kinds of matching methods are supported:
The prefix keyword compares the selection criteria to the beginning of the URL string.
The suffix keyword compares the selection criteria to the end of the URL string.
The pattern keyword looks for the selection criteria anywhere within the URL string.
The second part of the specifies the selection criteria, which can be up to 80 characters in length;
In this example, the selection criteria is the text string "gif". Since the matching method is suffix, the
policy looks at the end of the URL string. If the URL string ends with the text "gif", then the URL
string meets the selection criteria.
NOTE
In addition to using text as selection criteria, you can use an asterisk (*) as a wildcard character to
specify one or more characters at the end of a URL string. For example, using "/ho*" as the selection
criteria matches /home, /hotels, and /home/main/index.html.
If you are using the suffix matching method, you cannot use an asterisk (*) as a wildcard character.
The asterisk wildcard character is valid for the prefix and pattern matching methods only.
The csw-policy p1 command sets the name of the policy.
If the URL string meets the selection criteria, the second part of the match command specifies
what to do with the HTTP request. In this example, the 1 in the command causes the HTTP request
to be sent to the cache server group whose ID = 1. Specifying 0 in the match command causes the
request to be directed to the Internet. A CSW policy can contain multiple match commands, each
with different selection criteria.
The default forward 2 command specifies what happens when the URL string does not meet any of
the selection criteria in a CSW policy’s match command. With a match command, you can specify a
server group ID number. In this example, if a URL string does not match the selection criteria in
policy p1, it is sent to group-id 2 for evaluation.
NOTE
As the diagram in Figure 19 illustrates, there is only one cache server in server group ID = 2. Even
so, the match command must refer to a server group, rather than an actual cache server. Server
groups can consist of one or more cache servers.
Configuring the cache servers
The cache servers return the content to the requesting clients. When configuring content aware
cache switching, you place the cache servers into logical server groups. CSW policies direct HTTP
requests to one of the cache servers in these logical groups.
Page view 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 135 136

Comments to this Manuals

No comments