Forum Discussion
David_Bradley_2
Nimbostratus
Mar 27, 2007How do I create a passive health monitor?
Can someone point me to documentation (or an example) on writing a passive health monitor into my iRule? Thanks in advance.
Dave
12 Replies
- Al_Carandang_11
Nimbostratus
Just curious what you mean by "passive" health monitor... - JRahm
Admin
Version 9.4 is supposed to have passive monitoring features, not sure how that ties into iRules though - JRahm
Admin
LocalDirector had a nice passive monitoring process whereby it took a server out of service when X consecutive syn packets went unanswered. I wish the LTM supported this on the monitoring side. You can affect an LB_FAILED event and reselect based on your tcp profile, but this tuning should be available as a simple monitoring scheme. - David_Bradley_2
Nimbostratus
I found this from the LTM 9.4 release notes... I can't find any other documentation. F5 consultants were onsite and mentioned passive monitoring as a possible solution to my problem.
"The BIG-IP system now includes a feature known as passive monitoring. With passive monitoring, a pool member can be marked down sooner than the customary three successive bigd health check failures. Implementation of this feature requires the use of the iRulesTM feature." - Vincent_Aniello
Nimbostratus
I just opened a case with F5 support on this same issue. Once they point me to the documentation for this feature I will post the info here. - dennypayne
Employee
Basically what this involves is looking at the HTTP status codes that come back in the HTTP_RESPONSE event and invoking LB::reselect if it's a 404 or 500 or something like that. I believe LB::reselect is new in 9.4.
In the http profiles you will also notice a new field in 9.4 that does a fallback on whatever response codes you define (it's essentially a canned iRule along the lines of what I described above).
Denny - dennypayne
Employee
EDIT: sorry duplicate post (stupid slow EVDO connection..) - Deb_Allen_18Historic F5 AccountHi Dave -
LB::reselect was introduced in one of the 9.2 releases. I know it is available in 9.2.3 or better. LB::reselect can be used in LB_FAILED, which is only triggered if the selected pool member doesn't respond. It cannot be used in *_RESPONSE events if the server does respond.
If the server does respond and the response indicates a new node should be selected, for HTTP traffic I believe you could use LB::detach and HTTP::retry in HTTP_RESPONSE event to send the request to a different pool member. I don't think there is an equivalent command for replaying a TCP request.
Passive monitoring in 9.4 is specific to HTTP response codes.
HTH
/deb - JRahm
Admin
Passive monitoring in 9.4 is specific to HTTP response codes.
...Bummer. I was hoping the passive monitoring would be more feature rich than this. - Arie
Altostratus
Where is passive monitoring enabled/invoked? I need to mark down nodes as soon as a server error occurs. Waiting for a regular monitor takes too long.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects