Alcatel-Lucent 6850-48 网络指南
Configuring Server Load Balancing
Modifying Optional Parameters
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 44-29
Modifying the Ping Retries
command by entering ip slb cluster, the name of the SLB cluster, ping retries, and the
user-specified number of ping retries. For example:
-> ip slb cluster Web_Server ping retries 5
Modifying the Relative Weight of a Physical Server
The default weight value assigned to an SLB cluster server is 1. To modify the relative weight of a server,
use the
use the
command by entering ip slb server, the IP address of the physical server
you want to modify, cluster, the name of the SLB cluster to which this server belongs, weight, and the
value for the relative weight, which can range from 0 (the switch will prevent this server from being
assigned any new connections) to 32, with 32 having the greatest relative weight.
value for the relative weight, which can range from 0 (the switch will prevent this server from being
assigned any new connections) to 32, with 32 having the greatest relative weight.
For example, to set the relative weight of a server with an IP address of 10.105.16.121 that belongs to an
SLB cluster called “Web_Server” to 5 enter:
SLB cluster called “Web_Server” to 5 enter:
-> ip slb server ip 10.105.16.121 cluster Web_Server weight 5
Server weights are relative. For example, if Servers A and B have respective weights of 5 and 10 within a
cluster, Server A would get half the traffic of server B. Since weights are relative, assigning Servers A and
B respective weights of 1 and 2, or 5 and 10, etc., would produce identical results.
cluster, Server A would get half the traffic of server B. Since weights are relative, assigning Servers A and
B respective weights of 1 and 2, or 5 and 10, etc., would produce identical results.
Note. The ip slb server ip cluster command is also used to add or remove servers from an SLB cluster
(see
(see
administratively enabling and disabling a server in an SLB cluster (see
).
Configuring a Server in an SLB Cluster as a Backup Server
You can configure a server in a cluster as a backup server with the
weight
command by entering ip slb server ip, the IP address of the server, cluster, the name of the SLB cluster,
weight and weight value as zero.
weight and weight value as zero.
For example, to configure a server with an IP address of 10.105.16.118 in an SLB cluster called
“Web_Server” as a backup server, enter:
“Web_Server” as a backup server, enter:
-> ip slb server ip 10.105.16.118 cluster Web_Server weight 0
Assigning a weight of 0 (zero) to a server will prevent this server from being assigned any new
connections.This server will be a backup server.
connections.This server will be a backup server.