Alteon Application Switch Operating System Application Guide
Content-Intelligent Server Load Balancing Not Using Layer 7 Content Switching Rules
•
Applications—Identify users by the specific application they are using. For example, priority
can be given to HTTPS traffic that is performing credit card transactions versus HTTP browsing
traffic.
•
Content—Identify users by the specific content they are accessing.
Based on one or more of these criteria, you can load balance requests to different server groups.
Configuring Cookie-Based Preferential Load Balancing
To configure cookie-based preferential load balancing
1. Before you can configure header-based load balancing, ensure that Alteon has already been
configured for basic SLB with the following tasks:
—
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.
For information on how to configure your network for SLB, see
2. Turn on URL parsing for the virtual server.
>> # /cfg/slb/virt 1
>> Virtual Server 1 # service 80
>> Virtual Server 1 http Service # http
>> HTTP Load Balancing# httpslb
>> Application:
>> urlslb|host|cookie|browser|urlhash|headerhash|version|others|none
>> Select Application:cookie
>> Operation: and|or|none
>> Select Operation: ena
>> Enter Cookie Name: sid
>> Enter the starting point of the Cookie value [1-64]: 1
>> Enter the number of bytes to extract [1-64]: 6
>> Look for Cookie in URI [e:d]: d
In this example
—
sid is the cookie name
—
1 is the offset (the starting position of the value to be used for hashing)
—
6 is the length (the number of bytes in the cookie value)
—
d looks for the cookie in the cookie header instead of the URI (disables searching for cookie
in the URI)
3. Define the cookie values.
>> # /cfg/slb/layer7/slb/addstr "Gold"
>> # addstr "Silver"
>> # addstr "Bronze"
Because a session cookie does not exist in the first request of an HTTP session, a default server
or any server is needed to assign cookies to a None cookie HTTP request.
816
Server Load Balancing, page
Document ID: RDWR-ALOS-V2900_AG1302
165.