weight

Use this command to specify the weight load number of an IPv4 or IPv6 real server.

Syntax

weight weight-number
no weight weight-number

Parameters

weight-number Specifies the weight load number. Valid values are 1-255. The default value is 1.

Defaults

Weight defaults to 1.

Mode

Configuration command, SLB Real Server Configuration mode.

Usage

Weight is a way of accounting for the resource differences between servers. If a real server has the capacity to handle twice the number of sessions as another real server, its weight ratio to the other server can be set to 2:1. The default weight for all real servers is 1. When all real servers are configured with the default weight, each real server is treated equally. When a non?default weight is applied to any real servers in the server farm, the algorithm takes that weight into account when assigning sessions to the real servers.

The “no” form of this command resets the weight load number to the default value of 1.

Examples

This example shows how to set the weight load number to 3 on the real server at IP 10.1.2.3 in the “myproductHTTP” server farm:

System(rw-config)->ip slb serverfarm myproductHTTP
System(rw-config-slb-sfarm)->real 10.1.2.3 port 80
System(rw-config-slb-real)->weight 3
System(rw-config-slb-real)->inservice

This example shows how to set the weight load number to 3 on the real server at IP 2001:11ac:fd34::5 in the “myproductHTTP66” server farm:

System(rw-config)->ipv6 slb serverfarm myproductHTTP66
System(rw-config-slb-sfarm)->real 2001:11ac:fd34::5 port 80
System(rw-config-slb-real)->weight 3
System(rw-config-slb-real)->inservice