Forum Discussion
Michael_Yates
Mar 14, 2013Nimbostratus
Hi KJ,
The problem with marking a node down with an iRule is that if it passes the Monitor assigned to the pool then it will be marked back up (unless you have Manual Resume Enabled).
I would suggest using a custom HTTP Monitor.
Send String: "GET /something.html\r\n\r\n"
Receive String (Good Indicator): "HTTP/1\.(0|1) (2|3|4)"
Receive String Disable (Disable if Status Code equals any 5xx Errors): "HTTP/1\.(0|1) (5)"
So this will consider any 2xx, 3xx, or 4xx Status Codes to be good and any 5xx Errors Bad and mark the node down.
Keep in mind that you can apply any number of HTTP Monitors to a Pool or Node and require that all of them be good in order for a node to be available to take traffic.
Hope this helps.