Forum Discussion

ucgwebmaster_95's avatar
ucgwebmaster_95
Icon for Nimbostratus rankNimbostratus
Jul 15, 2009

Enable window services with an Irule

I have an Apache/Resin Web server configuration on 2 machines behind one pool. One of the nodes has the resin web server service turned off which then causes the monitor to fail. We are using priority group activation and if the one member goes offline, no traffic will be sent to the other member.

 

 

This may not be a task for an Irule but is there anyway to check whether a windows service is running and if not, enable it before sending traffic?

4 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Not easily from an iRule. I would think you would do better to run a script on the pool member itself to restart the service if/when it dies. You could then use monitors on LTM to know when the pool member is ready to accept requests.

     

     

    Aaron
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Aaron's right. Interacting with a server to turn services on and off isn't something you'd do via iRules.

     

     

    Colin