Forum Discussion

LDB_53877's avatar
LDB_53877
Icon for Nimbostratus rankNimbostratus
Jul 09, 2008

Controlling 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

  • 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

     

     

  • 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
  • Ahh .. now we're playing power ... "bigpipe" looks promising ... That is how I can use iRules and monitoring

     

    together ...
  • 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
  • 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 like

     
     bigpipe node help 
     

    for more specific help.