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
- hoolio
Cirrostratus
Hi Yekesa,
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