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
Michael_Koyfma1
Cirrus
Dec 18, 2007Actually, there is a new command in 9.4.x called LB::down. Basically, when it is called, it forces LTM to mark the node down and schedule an immediate health check using the assigned monitor. LB::down does NOT force re-loadbalancing itself - if you want to repeat your request and force another LB decision after calling LB::down, you can issue HTTP::retry.
Here is an example:
when HTTP_REQUEST {
set request [HTTP::request]
}
when HTTP_RESPONSE {
if { [HTTP::status] >= 500 } {
LB::down
HTTP::retry $request
}
}
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