Forum Discussion

Roman_80473's avatar
Icon for Nimbostratus rankNimbostratus
Nov 17, 2011

Detect if node is half-dead with an iRule?

Hi folks,



I was tasked to monitor app servers in the pool with an iRule (LTM 10.2). I wrote a simple rule which does the following:


if I get into LB_FAILED, I take the node out and resend request


if I get into HTTP_RESPONSE, and http status >= 500, I take the node out and resend request



It only seems to be working when the nodes are either fine or completely dead. Otherwise, (server ran out of memory), request gets into LB_SELECTED, and sits there forever. I get "The connection to the server was reset while the page was loading" error in the browser after about a minute or two, but my iRule never kicks in.



Is there a way to detect that the node is "half-dead" with iRule? Or, there're some external configuration in the VIP, pool, etc?



Any help is greatly appreciated


Thanks, Roman

14 Replies