Cookie-based bandwidth management example – Nortel Networks WEB OS 212777 User Manual
Page 465
Web OS 10.0 Application Guide
Chapter 17: Bandwidth Management
n
465
212777-A, February 2002
5.
Turn on URL-based server load balancing on the virtual server.
Configure everything under the virtual server as in Configuration Example 1.
If the same string is used by more than one service, and you want to allocate a certain percent-
age of bandwidth to this URL string for this service on the virtual server, then define a rule
using the
urlcont
command.
This contract is tied to service 1. The
urlcont
command will overwrite the contract assigned
to the URL string ID.
6.
Enable Server Load Balancing.
Cookie-Based Bandwidth Management Example
In this example, you will assign bandwidth based on cookies. First, configure cookie-based
server load balancing, which is very similar to URL-based load balancing. Any cookie contain-
ing the specified string is redirected to the assigned server.
Scenario 1: In this scenario, the Web site has a single virtual server IP address and supports
multiple classes of users. Turn on cookie parsing for the service on the virtual server.
1.
Define one or more load-balancing strings.
Example:
>> # /cfg/slb/virt 1/service 80/httpslb enable urlslb
>> # /cfg/slb/virt 1/service 80/urlcont
>> # /cfg/slb/on
>> # /cfg/slb/virt 1/service 80
>> # httpslb enabled cookie sid 1 8 disable
>> # /cfg/slb/layer7/lb/add
>> # /cfg/slb/layer7/lb/add "Business"
>> # add "First"
>> # add "Coach"