Binding the policy – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 211
Brocade Virtual ADX Server Load Balancing Guide
195
53-1003247-01
Port policy
4
Binding the policy
After the policy is configured, return to the configuration level and bind the policy to a real server
port.
Virtual ADX(config)#server real r1 10.10.1.101
Virtual ADX(config-rs-name)#port 1234 use-port-policy p1
Syntax: server real real-server-name real-server-ip-address
Syntax: [no] port port-num use-port-policy policy-name
For the policy-name variable, enter the name of the policy you created.
Once a policy is bound to a real server port, the Brocade Virtual ADX will use the values configured
in the policy for health checks.
The Brocade Virtual ADX sends a health check to the port configured in the policy; however, if you
do not configure a port number in the policy, the Brocade Virtual ADX sends the health check to the
port to which it is bound.
NOTE
The port policy configuration will take precedence over a port profile.
Example 1:
Virtual ADX(config)#server port-policy p1
Virtual ADX(config-port-policy-p1)#port 80
Virtual ADX(config-port-policy-p1)#protocol http
Virtual ADX(config-port-policy-p1)#retries 5
Virtual ADX(config-port-policy-p1)#exit
Virtual ADX(config)#server real r1 10.10.1.101
Virtual ADX(config-rs-r1)#port 1234 use-port-policy p1
Virtual ADX(config-rs-r1)#port 1234 keepalive
In Example 1, Port 1234 on Real Server 1 will be marked as “UP”, if the Layer 7 health check on
Port 80 on the server with the IP address of 10.10.1.101 passes.
Example 2:
Virtual ADX(config)#server port-policy p2
Virtual ADX(config-port-policy-p2)#protocol http
Virtual ADX(config-port-policy-p2)#l4-check
Virtual ADX(config-port-policy-p2)#exit
Virtual ADX(config)#server real r2 10.10.1.102
Virtual ADX(config-rs-r1)#port 1234 use-port-policy p2
In Example 2, a port has not been configured for "policy p2," so the Brocade Virtual ADX will use the
port to which the policy is bound. Port 1234 of real server r2 will be marked as "UP" if the health
check to port 1234 on the 10.10.1.101 Server passes the Layer 4 health-check.
Example 3:
In the following example, Port Policy pp1 is configured with a keepalive interval of 5 seconds, while
Port Policy pp2 has a keepalive interval of 30 seconds.
Port Policy pp1 is bound to real server rs1 port 8080 and real server rs2 port 9090; therefore,
these two ports have a 5 second keepalive interval.