Forum Discussion
LDB_53877
Nimbostratus
Jul 09, 2008Controlling web traffic from a specfic web server
Does anyone have a rule out there to control the
traffic from the BigIP to webservers, by designating a
file in the web tree called,
status
Then in this file I can put the either one of the directives:
drain
stop
start
And those directives will be followed by the BigIP that will
ONLY affect that specific web server.
Thanks,
LDB
6 Replies
- Nicolas_Menant
Employee
Hi,
an iRule is not able to check by itself some files on a webserver and cannot do it to on an interval basis.
Maybe you can create some HTTP monitor to check for the content of this file and depending on the result of the content you can turn off/on the webserver. That seems to be the closest to what you would like to achieve - hoolio
Cirrostratus
What about using an external monitor which runs a bigpipe command to enable/disable either the pool member or the node address? Or you could build an externally hosted app which polls the servers independent of the BIG-IP and then makes an iControl call to change the pool member's state based on the app response to the request.
Aaron - LDB_53877
Nimbostratus
Ahh .. now we're playing power ... "bigpipe" looks promising ... That is how I can use iRules and monitoring
together ... - hoolio
Cirrostratus
You can get details on bigpipe commands by running 'man b' or 'b COMMAND_NAME help'. 'b pool help' shows the following:
b pool POOL_NAME member MEMBER_IP_PORT session enable | disable
Here's an example of how to enable sessions for my_pool member 1.1.1.1:80
b pool my_pool member 1.1.1.1:80 session enable
Aaron - Andy_Herrman_22
Nimbostratus
Probably something like this:bigpipe node NODE_IP up bigpipe node NODE_IP down
replace NODE_IP with the address of the node.
If you need more help, or want to see what else bigpipe can do, try running this:bigpipe help
you can also do things likebigpipe node help
for more specific help. - LDB_53877
Nimbostratus
Thank you All ...
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