predictor

Use this command to specify which load balancing algorithm to use for selecting a real server in an IPv4 or IPv6 LSNAT server farm.

Syntax

predictor [roundrobin | leastconns]
no predictor

Parameters

roundrobin (Optional) Specifies round robin as the selection algorithm (default).
leastconns (Optional) Specifies least connections as the selection algorithm.

Defaults

The predictor defaults to round robin. If the load balancing algorithm is not specified, round robin will be used as the selection algorithm.

Mode

Configuration command, SLB Server Farm Configuration mode.

Usage

The “no” form of this command resets the selection algorithm to Round Robin.

Examples

This example shows how to specify Least Connections as the server selection algorithm for the IPv4 “myproductHTTP” server farm:

System(rw-config)->ip slb serverfarm myproductHTTP
System(rw-config-slb-sfarm)->predictor leastconns

This example shows how to specify Least Connections as the server selection algorithm for the IPv6 “myproductHTTP66” server farm:

System(rw-config)->ipv6 slb serverfarm myproductHTTP66
System(rw-config-slb-sfarm)->predictor leastconns