beautypg.com

Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 215

background image

Brocade Virtual ADX Server Load Balancing Guide

199

53-1003247-01

Element health checks

4

These commands change the CLI to the configuration level for an element-action expression, then
specify the IPv4 or IPv6 address of the real server and the application port on the server. Because
the specified application is well-known to the Brocade Virtual ADX, the Brocade Virtual ADX
automatically associates the default health check parameters for the port with the element-action
expression. In this example, the port is HTTP (80), so the Brocade Virtual ADX associates the
default HTTP health check parameters with the element-action expression. By default, the Brocade
Virtual ADX sends a HEAD request for the default page.

NOTE

You must specify the destination IP address before you can specify other health check parameters.
The software creates the health check policy only after you specify the destination IP address. If you
try to specify another parameter before the destination IP address, the CLI displays an error
message such as the following: Error - check1: Health-check element is undefined.

NOTE

If you do not specify the application port, the Brocade Virtual ADX will list the status of the health
check as FALSE (failed).

To configure an element-action expression for a port number that is not well-known to the Brocade
Virtual ADX, enter commands such as the following.

Example for IPv4

Virtual ADX(config)#healthck check1 tcp

Virtual ADX(config-hc-check1)#dest-ip 10.10.10.50

Virtual ADX(config-hc-check1)#port 8080

Virtual ADX(config-hc-check1)#protocol http

Example for IPv6

Virtual ADX(config)#healthck check-v6 tcp

Virtual ADX(config-hc-check-v6)#dest-ip 2001:db8:2000::1

Virtual ADX(config-hc-check-v6)#port 8080

Virtual ADX(config-hc-check-v6)#protocol http

These commands configure an element-action expression for unknown port 8080 and associate
the default health check parameters for port 80 with the unknown port. To customize the Layer 7
health check parameters for a port, add the information with the protocol command, as in the
following example.

Example for IPv4

Virtual ADX(config)#healthck check1 tcp

Virtual ADX(config-hc-check1)#dest-ip 10.10.10.50

Virtual ADX(config-hc-check1)#port 8080

Virtual ADX(config-hc-check1)#protocol http url "GET /sales.html"

Example for IPv6

Virtual ADX(config)#healthck check-v6 tcp

Virtual ADX(config-hc-check-v6)#dest-ip 2001:db8:2000::1

Virtual ADX(config-hc-check-v6)#port 8080

Virtual ADX(config-hc-check-v6)#protocol http url "GET /sales.html"

The protocol command in this example changes the Layer 7 health check parameters for this HTTP
port to a GET request for a page named sales.html.

Syntax: [no] healthck string { tcp | udp | boolean | icmp }