beautypg.com

Nortel Networks WEB OS 212777 User Manual

Page 431

background image

Web OS 10.0 Application Guide

Chapter 16: Persistence

n

431

212777-A, February 2002

4.

Select the appropriate load-balancing metric for the real server group.

n

If embedding an IP address in the cookie, select

roundrobin

or

leastconns

as the

metric.

n

If you are not embedding the IP address in the cookie, select

hash

as the metric in con-

junction with a cookie assignment server.

While you may experience traffic concentration using the

hash

metric with a cookie

assignment server, using a

hash

metric without a cookie assignment server will cause

traffic concentration on your real servers.

5.

Enable cookie-based persistence on the virtual server service.

In this example, cookie-based persistence is enabled for service 80 (HTTP).

Once you specify

cookie

as the mode of persistence, you will be prompted for the following

parameters:

n

Cookie-based persistence mode:

insert

,

passive

or

rewrite

n

Cookie name

n

Starting point of the cookie value

n

Number of bytes to be extracted

n

Look for cookie in the URI [e | d]

If you want to look for cookie name/value pair in the URI, enter

e

to enable this option. To

look for the cookie in the HTTP header, enter

d

to disable this option.

>> # /cfg/slb/group 2/metric hash

(Select hash as server group metric)

>> # /cfg/slb/virt 1/service 80/pbind

Current persistent binding mode: disabled

Enter cookie|sslid|disable persistence mode: cookie

Enter insert|passive|rewrite cookie persistence mode [i/p/r]: p

Enter cookie name: CookieSession1

Enter starting point of cookie value [1-64]: 1

Enter number of bytes to extract [0-64]: 8

Look for cookie in URI [e|d]: d

Set multiple response count [1-16]: 1