Browser-smart load balancing, Browser-smart load balancing 386 – Nortel Networks WEB OS 212777 User Manual

Page 386

Advertising
background image

Web OS 10.0 Application Guide

386

n

Chapter 15: Content Intelligent Switching

212777-A, February 2002

Browser-Smart Load Balancing

HTTP requests can be directed to different servers based on browser type by inspecting the
“User-Agent” header. For example,

GET /products/180/ HTTP/1.0

User-agent: Mozilla/3.0

Accept: text/html, image/gif, image/jpeg

To allow the switch to perform browser-smart load balancing, perform the following proce-
dure.

1.

Before you can configure browser-based load balancing, ensure that the switch has
already been configured for basic SLB with the following tasks:

n

Assign an IP address to each of the real servers in the server pool.

n

Define an IP interface on the switch.

n

Define each real server.

n

Assign servers to real server groups.

n

Define virtual servers and services.

2.

Turn on URL parsing for the virtual server for “User-Agent:” header.

3.

Define the host names.

4.

Configure the real server(s) to handle the appropriate load balancing string(s).

N

OTE

If you don't add a defined string (or add the defined string “

any

”), the server will han-

dle any request.

Use the following command to add a defined string:

where ID is the identification number of the defined string.

>> # /cfg/slb/virt 1/service 80/httpslb browser

>> # /cfg/slb/layer7/slb/add "Mozilla"

>> Server Loadbalance Resource# add "Internet Explorer"

>> Server Loadbalance Resource# add "Netscape"

>> # /cfg/slb/real 2/layer7/addlb

<ID>

Advertising