Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 229
Brocade Virtual ADX Server Load Balancing Guide
213
53-1003247-01
Health check with content match
4
Using a scripted health check in a health-check policy
A scripted health check can be used in a health-check policy. A health-check policy is a group of
one or more health checks attached to a real server port. When the scripted health check checks
the health of a destination port specified in the policy, the health-check policy can be evaluated to
true or false depending on the response from the server.
To use a scripted health check with a health-check policy, you configure a matching list, then
configure the health-check policy.
For example, when the following matching list is used with a health-check policy, it will evaluate the
policy to true if the string “FTP service” is found in the response from the real server. If this text is
not found, the policy is evaluated to false.
Virtual ADX(config)#http match-list m1
Virtual ADX(config-http-m1-m1)#up simple "FTP service"
Virtual ADX(config-http-m1-m1)#default down
Virtual ADX(config-http-ml-m1)#exit
The default down command causes the policy to be evaluated to false if the selection criteria is not
found in the response from the server. If the real server responds to the health check with an RST,
the policy is evaluated to true or false depending on what was specified in the default statement in
the matching list.
Configuring a health check policy
The following commands create a health check policy for TCP port 1234 on VIP 10.10.10.10.
Matching list m1 is bound to this policy.
Virtual ADX(config)#healthck check1 tcp
Virtual ADX(config-hc-check1)#dest-ip 10.10.10.10
Virtual ADX(config-hc-check1)#port 1234 content-check m1
Virtual ADX(config-hc-check1)#l7-check
Syntax: [no] healthck element-name protocol
Syntax: [no] dest-ip { ipv4-addr | ipv6-addr }
The ipv4-addr variable specifies the IPv4 address of the real server.
The ipv6-addr variable specifies the IPv6 address of the real server.
Syntax: [no] port portnum content-check matching-list-name
Syntax: [no] l7-check
Note that the dest-ip ipv4-addr or ipv6-addr command must be the first command entered for a
health-check policy. If this is not the first command entered for the policy, an error message is
displayed.
If the matching-list-name variable does not refer to an existing matching list, the policy is evaluated
to false.
The l7-check command is required to ensure that the Brocade Virtual ADX performs a Layer 7
health check. If this command is omitted, the Brocade Virtual ADX performs only a Layer 4 health
check, and not the scripted health check.