telnet@readysystem(config)#
telnet@readysystem(config)#server real web1 192.168.0.24
telnet@readysystem(config-rs-web1)#port http
telnet@readysystem(config-rs-web1)#exit
telnet@readysystem(config)#server real web2 192.168.0.212
telnet@readysystem(config-rs-web2)#port http
telnet@readysystem(config-rs-web1)#port http keepalive
telnet@readysystem(config-rs-web1)#exit
telnet@readysystem(config)#server real web2
telnet@readysystem(config-rs-web2)#port http keepalive
telnet@readysystem(config-rs-web2)#exit
telnet@readysystem(config-rs-web2)#server virtual v1 192.168.0.90
telnet@readysystem(config)#
telnet@readysystem(config)#server virtual v1
telnet@readysystem(config-vs-v1)#port http
telnet@readysystem(config-vs-v1)#bind http web1 http
telnet@readysystem(config-vs-v1)#bind http web2 http
telnet@readysystem(config-vs-v1)#exit
telnet@readysystem(config)#server predictor round-robin
telnet@readysystem(config)#server real web1
telnet@readysystem(config-rs-web1)#weight 7
telnet@readysystem(config-rs-web1)#exit
telnet@readysystem(config)#server real web2
telnet@readysystem(config-rs-web2)#weight 2
telnet@readysystem(config-rs-web2)#exit
telnet@readysystem(config)#server predictor weighted
̷ ϰ ش Ǹ Ͽ Ȯ غ .....
web1 ---- weighted : 7
web2 ---- weighted : 2
web1 ټ web2 ѹ ϴ.
The following tables illustrate the difference in how connections are assigned to servers when the weighted predictor is configured, compared to the enhanced weighted predictor. Assume a configuration with three real servers, A, B, and C. Real server A has a weight of 1, real server B has a weight of 2, and real server C has a weight of 3. The numbers in bold indicate which server receives the new connection.
When the weighted predictor is configured, connections are assigned as follows:
Table 3.3: SLB with the weighted predictor
Real Server A |
Real Server B |
Real Server C |
weight = 1 |
weight = 2 |
weight = 3 |
Connections |
|
Connections |
Server Load |
Connections |
Server Load |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|