Chapter 15: Web Hosting Configuration Guide
212
DIGITAL GIGAswitch/Router User Reference Manual
Load Balancing
Note:
Some commands in this facility require updated GSR hardware. Please refer to the
Release Notes for details.
You can use the load balancing feature on the GSR to distribute session load across a
group of servers. If you configure the GSR to provide load balancing, client requests that
go through the GSR can be redirected to any one of several predefined hosts. With load
balancing, clients access servers through a virtual IP. The GSR transparently redirects the
requests with no change required on the clients or servers; all configuration and
redirection is done on the GSR.
Configuring Load Balancing
The following are the steps in configuring load balancing on the GSR:
1.
Create a logical group of load balancing servers and define a virtual IP for the group.
2.
Specify the policy for distributing workload for this group of load balancing servers.
This step is optional; by default, the GSR assigns sessions to servers in a round-robin
(sequential) manner.
3.
Define the servers in the group.
Creating the Server Group
To use load balancing, you create a logical group of load balancing servers and define a
virtual IP for the server that the clients will use to access the server pool.
To create the server group and define the virtual IP for the server, enter the following
command in Configure mode:.
Create group of load balancing
servers.
load-balance create group-name
<group
name>
virtual-ip
<ipaddr>
virtual-port
<port number>
protocol tcp|udp
Create a range of load balancing
server groups.
load-balance create vip-range-name
<range
name>
vip-range
<range>
virtual-port
<port number>
protocol tcp|udp