4 optional group or server operating parameters, Optional group or server operating parameters -5 – Riverstone Networks WICT1-12 User Manual

Page 503

Advertising
background image

Riverstone Networks RS Switch Router User Guide Release 8.0 22-5

Web Hosting Configuration

Load Balancing

22.1.4

Optional Group or Server Operating Parameters

The

load-balance set server-options

command and

load-balance set group-options

command

have several parameters that affect the operations of individual servers or the entire group of load balancing servers.
In many cases, there are default parameter values and you only need to specify a different value if you wish to change
the default operation. For example, you can specify the policy to be used for distributing the workload for a group of
load balancing servers created with the parameter

protocol tcp

. By default, the RS assigns sessions to these servers

in a round-robin (sequential) manner.

Specifying a Load Balancing Policy

The default policy for distributing workload among load balancing servers is “round-robin,” where the RS selects the
server on a rotating basis without regard to the load on individual servers. Other policies can be chosen for the group
as follows:

least loaded, where the server with the fewest number of sessions bound to it is selected to service a
new session.

weighted round robin, a variation of the round-robin policy where each server takes on new sessions
according to its assigned weight. If you choose the weighted round robin policy, you must assign a
weight to each server that you add to the load balancing group.

fastest, where the server with the fastest response time is selected to service a new session.

predictive, where the server with the fastest decreasing response time is selected to service a new
session.

Note

These policies only affect TCP traffic; UDP and IP traffic

are load-balanced using

a fixed IP-hash policy.

The following example sets the load balancing policy of the “mktgroup” server group to least-loaded:

Specifying a Connection Threshold

By default, there is no limit on the number of sessions that a load balancing server can service. You can specify the
maximum number of connections that each server in a group can service. The following example sets the maximum
number of connections for each server in the “mktgroup” group:

Note

This limits the number of connections for each server in the group, not the total
number of connections for the group.

rs(config)# load-balance set group-options mktgroup policy least-loaded

rs(config)# load-balance set group-options mktgroup group-conn-threshold 800

Advertising