Alteon Application Switch Operating System Application Guide
Application Redirection
Document ID: RDWR-ALOS-V2900_AG1302
475
URL Hashing for Cache Redirection
By default, hashing algorithms use the source IP address and/or destination IP address (depending
on the application area) to determine content location. For example, FWLB uses both source and
destination IP addresses, cache redirection uses only the destination IP address, and SLB uses only
the source IP address.
Hashing is based on the URL, including the HTTP Host header (if present), up to a maximum of 255
bytes. You can optimize cache hits by using the hashing algorithm to redirect client requests going
to the same page of an origin server to a specific cache server.
For example, Alteon could use the string "radware.com/products/Alteon/" for hashing the following
request:
GET http://products/Alteon/ HTTP/1.0
HOST:www.radware.com
To configure Alteon for cache redirection based on a hash key
1. Configure basic SLB.
Before you can configure header-based cache redirection, ensure that Alteon is configured for
basic SLB (see
Server Load Balancing, page 165
—
Assign an IP address to each of the real servers in the server pool.
—
Define an IP interface.
—
Define each real server.
—
Assign servers to real server groups.
—
Define virtual servers and services.
—
Configure the load-balancing algorithm to hash or minmiss.
2. Turn on Layer 7 lookup for the filter.
3. Enable hash to direct a cacheable URL request to a specific cache server.
By default, the host header field is used to calculate the hash key and URL hashing is disabled.
—
hash ena—Enables hashing based on the URL and the host header if it is present. Specify
the length of the URL to hash into the cache server:
—
hash disable—Disables hashing based on the URL. Instead, the host header field to
calculate the hash key.
If the host header field does not exist in the HTTP header, then Alteon uses the source IP
address as the hash key.
>> # /cfg/slb/filt 1/adv/layer7/l7lkup enable
>> # /cfg/slb/layer7/redir/hash ena
Enter new hash length [1-255]: 24
Содержание Alteon
Страница 2: ...Alteon Application Switch Operating System Application Guide 2 Document ID RDWR ALOS V2900_AG1302 ...
Страница 42: ...Alteon Application Switch Operating System Application Guide Preface 42 Document ID RDWR ALOS V2900_AG1302 ...
Страница 582: ...Alteon Application Switch Operating System Application Guide High Availability 582 Document ID RDWR ALOS V2900_AG1302 ...