beautypg.com

Using a nested health-check policy – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 234

background image

218

Brocade Virtual ADX Server Load Balancing Guide

53-1003247-01

Boolean health checks

4

The address 00e0.5208.dd8e is the MAC address of Link3's access router interface. The vlan-id
40 is the Brocade Virtual ADX’s interface, that is used to connect Link3's access router is in VLAN
40

Syntax: next-hop-mac-address mac-address vlan-id vlan#

Using a nested health-check policy

If you want to use a single health-check policy to test more than two IP addresses, configure
health-check policies for all the IP addresses, and use them in another health-check policy. For
example, to create a health-check policy that tests four IP addresses, enter commands such as the
following.

Virtual ADX(config)#healthck check1 tcp

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

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

Virtual ADX(config-hc-check1)#healthck check2 tcp

Virtual ADX(config-hc-check2)#dest-ip 10.10.10.20

Virtual ADX(config-hc-check2)#port http

Virtual ADX(config-hc-check2)#healthck check3 tcp

Virtual ADX(config-hc-check3)#dest-ip 10.10.10.30

Virtual ADX(config-hc-check3)#port http

Virtual ADX(config-hc-check3)#healthck check4 tcp

Virtual ADX(config-hc-check4)#dest-ip 10.10.10.40

Virtual ADX(config-hc-check4)#port http

The commands above configure four element-action expressions, one for each of four servers. The
following commands configure two health-check policies, each of which contains two of the
element-action expressions.

Virtual ADX(config-hc-check4)#healthck nested1 boolean

Virtual ADX(config-hc-nested1)#or check1 check2

Virtual ADX(config-hc-nested1)#healthck nested2 boolean

Virtual ADX(config-hc-nested2)#or check3 check4

The following command creates a health-check policy that contains the two policies configured
above. The result is a single health-check policy for all four IP servers.

Virtual ADX(config-hc-nested2)#healthck checkall boolean

Virtual ADX(config-hc-checkall)#or nested1 nested2

In this example, the OR logical operator is used in all the policies. Therefore, the "checkall" health
check is successful if at least one of the four servers responds. To create more restrictive policies,
you can use the AND logical operator. For example, if the AND operator is used in this configuration
instead of OR, the health check is successful only if all four servers respond.

You also can combine policies that use AND with policies that use OR in nested health-check
policies.