Forum Discussion
Yekesa_Kosuru_1
Nimbostratus
Nov 20, 2006testing node for up/down before dispatch
Hi Experts,
Thanks a million for all your help. I have been putting final pieces of my script together. Quick question, can I use LB::status to test the status of a app server node before dispatching the requst?
when HTTP_REQUEST_DATA {
....
do a mod and figure out the node to which to forward this request to
BUT WAIT, make sure that node is up
if { [LB::status pool my_pool member 192.168.1.5 80] eq "up" } {
pool my_pool member 192.168.1.5:80 go ahead & send the req
}
else {
LB::down pool my_pool member 192.168.1.5:80
}
...
}
I have 5 nodes in my_pool and based on a hash value I send it to appropriate app server node. I want to be sure that the node is up before sending. Any help is appreciated.
Regards
yekesa
1 Reply
- hoolio
Cirrostratus
Hi Yekesa,
The LB::status command was added in 9.2.x so you would need to be running the latest version to use it.
I don't think you would want to manually disable the pool member if it wasn't up. Check this post for more info on changes to the monitoring functionality in the upcoming 9.4 version (Click here)
Have you tried testing the rule? If so, how is it working?
Aaron
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
