How to set/change the load-balancing predictors (non-dynamic) and weight of real servers
Set the predictor at the Virtual (Vip) level and set the weight at the real server level. If you enable any of the weighted methods, you must configure both the virtual and real servers involved.
Set the predictor at the VIP level
The format for setting predictor is:-
server predictor least-conn | round-robin | weighted-round-robin | weighted | enhanced-weighted | dynamic-weighted
To globally change the load-balancing method used by the ServerIron / ADX, use the following
server predictor round-robin
To change the load-balancing method used by the ServerIron / ADX for Virtual Server (VIP) , use the following at virtual
Assign weight to real server(s)
Syntax: weight <weight-value>
The <weight-value > parameter specifies the real server’s weight relative to other real servers in terms of the
number of connections on the server. Each real server is assigned a weight from 0 – 65000.
server real rs1
server real rs2
server real rs3
server virtual v1 10.1.1.151
bind http rs1 http rs2 http rs3 http
When multiple ports of a given real server are bound to the same VIP port then the default least-connection
predictor may not produce even connection distribution among these ports. Use of round-robin predictor in these cases.