Binding virtual and real servers, Changing the load-balancing predictor method, D in – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 37: Changing the, Load-balancing predictor method

Brocade Virtual ADX Server Load Balancing Guide
21
53-1003247-01
Changing the Load-Balancing Predictor Method
2
After you have defined the virtual server, you can add configuration statements or delete the server
by referring to the server’s IP address or name, by entering commands such as the following.
Virtual ADX(config)#server virtual-name-or-ip www.altergo.com 10.95.55.1
Virtual ADX(config-vs-www.altergo.com)#port http
Virtual ADX(config-vs-www.altergo.com)#exit
Virtual ADX(config)#server virtual-name-or-ip 10.95.55.1
Virtual ADX(config-vs-www.altergo.com)#exit
Virtual ADX(config)#server virtual-name-or-ip www.altergo.com
Virtual ADX(config-vs-www.altergo.com)#exit
Virtual ADX(config)#no server virtual-name-or-ip 10.95.55.1
Binding virtual and real servers
After you define the real servers, virtual servers, and TCP or UDP ports, you need to bind the real
and virtual servers together. The bindings are based on the TCP and UDP application ports you are
load balancing.
To bind the four Web servers shown in
to the virtual server address, enter the following
commands.
Virtual ADX(config-rs-Web4)#server virtual-name-or-ip www.altergo.com
Virtual ADX(config-vs-www.altergo.com)#bind http Web1 http
Virtual ADX(config-vs-www.altergo.com)#bind http Web2 http
Virtual ADX(config-vs-www.altergo.com)#bind http Web3 http
Virtual ADX(config-vs-www.altergo.com)#bind http Web4 http
Syntax: [no] bind tcp/udp-port-number real-server-name tcp/udp-port-number
NOTE
For clarity, the bindings in the example are shown as four separate entries. You can enter all the
binding information as one command: bind http Web1 http Web2 http Web3 http Web4 http
Changing the Load-Balancing Predictor Method
The Load-Balancing Predictor Method can be configured either globally or per-virtual server as
described in the following.
To globally change the load-balancing method used by the Brocade Virtual ADX, enter the following
command.
Virtual ADX(config)#server predictor round-robin
To change the load-balancing method used by the Brocade Virtual ADX for virtual server “v1”, enter
the following commands.
Virtual ADX(config)#server virtual-name-or-ip v1
Virtual ADX(config-vs-v1)#predictor
enhanced-weighted
Syntax: [no] server predictor { least-conn | round-robin | weighted-round-robin |
weighted-round-robin-static |weighted | enhanced-weighted | dynamic-weighted { direct |
reverse } | response-time }
Selecting the least-conn parameter configures the Least Connections load-balancing method. This
method is described in