22-4 Riverstone Networks RS Switch Router User Guide Release 8.0
Load Balancing Web Hosting Configuration
The following example adds servers to the “abccompany-www” load balancing group:
You can add backup servers to a load balancing group by specifying the status backup parameter in the
load-balance add host-to-group command. The backup servers are sent client requests only if a load balancing
server or an application on a load balancing server is “down” (as determined by the RS’s verification checking). In the
following example, the server with an IP address of 10.1.1.5 is added as a backup server:
You can also issue the load-balance set server-status command to set a load balancing server to a “down”
state. When the server or application that was “down” is again able to receive requests, the backup server finishes
processing its current client requests but no new requests will be directed to it.
22.1.3 Setting Timeouts for Load Balancing Mappings
The mapping between a host (source) and a load-balancing server (destination) times out after a certain period of
non-activity. After the mapping times out, any server in the load balancing group can be selected. The default timeout
depends upon the session persistence level configured, as shown below:
You can change the default timeout for a server group with the load-balance set aging-for-src-maps
command. In the following example, the default timeout was changed to 100 for the “mktgroup” server group. All
other groups use the defaults listed in Table22-1:
You can use the load-balance show source-mappings command to display information about the current list of
bindings.
rs(config)# load-balance add host-to-group 10.1.1.1-10.1.1.4 group-name
abccompany-www port 80
rs(config)# load-balance add host-to-group 10.1.1.5 group-name
abccompany-www port 80 status backup
Table 22-1 Default binding timeouts
Persistence Level Default Binding Timeout
TCP 3 minutes
SSL 120 minutes
Sticky 120 minutes
VPN 3 minutes
IP 3 minutes
rs(config)# load-balance set aging-for-src-maps mktgroup aging-time 100