beautypg.com

Binding the matching list to the real servers – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 226

background image

210

Brocade Virtual ADX Server Load Balancing Guide

53-1003247-01

Health check with content match

4

The default command specifies what happens if none of the HTML text in the HTTP response
message meets the selection criteria. You can specify either up or down; the default is up. If the
real server responds to the health check with a RST, the port is marked ACTIVE or FAILED
depending on what was specified in the default statement in the matching list.

The log parameter causes the following warning message to be logged when the selection criteria
is met.

00d00h00m00s:W:HTTP match-list matching-list with compound pattern1 start and pattern2 end
Alert: bring server down and Extract message: text-between-start-and-end-pattern

In the example, at the successful completion of an HTTP content verification health check, the
following message would be logged; that is, if the HTML file sent from the real server in response to
an HTTP keepalive request contains a text string that begins with the text “monkey see” and ends
with the text “monkey do”.

Displaying HTTP match lists

To display the contents of matching lists configured on the Brocade Virtual ADX, enter the following
command.

Virtual ADX#show http match-list

http match-list m1

down simple "404"

down simple "File Not Found"

http match-list m4

default down

up compound "monkey see" "monkey do" log

down compound "500" "Internal Server Error" log

down compound "503" "Service Unavailable" log

Syntax: show http match-list

Binding the matching list to the real servers

To enable HTTP content verification on the Brocade Virtual ADX, you bind the matching list to one or
more real servers, by entering commands such as the following.

Virtual ADX(config)#server real-name rs1 192.168.1.1

Virtual ADX(config-rs-rs1)#port http content-match m4

Virtual ADX(config-rs-rs1)#port http url "GET/monkey.html"

Virtual ADX(config-rs-rs1)#exit

Syntax: server real-name real-server-name ip-addr

Syntax: port http content-match matching-list-name

Syntax: port http url “[GET | HEAD] [/]URL-page-name

Virtual ADX#show logging

Syslog logging: enabled (0 messages dropped, 0 flushes, 0 overruns)

Buffer logging: level ACDMEINW, 1 messages logged

level code: A=alert C=critical D=debugging M=emergency E=error

I=informational N=notification W=warning

Dynamic Log Buffer (50 entries):

02d04h47m12s:W:HTTP match-list m4 with compound pattern1 "monkey see" and

pattern2 "monkey do" Alert: bring server up and Extract message: This web page is

configured correctly