Forum Discussion

daniel_witt_254's avatar
daniel_witt_254
Icon for Nimbostratus rankNimbostratus
Apr 17, 2006

enumerating healthy nodes in a pool

I would like to create an iRule that directs requests to a specific, healthy, member of a server pool using HTTP redirects. I have the script (more or less) working, but it is currently relying on an internal array of server addresses.

 

 

I would prefer to have the rule pull this list from a pool object and only pull nodes which are marked as healthy. Can someone point me in the right direction?
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Well, you can certainly do a check to see if the member of the pool that you select is healthy, if that's what you want to do.

     

     

    To do so, you'd use the LB::status command. You can find more about it in the iRules Wiki here: Click here

     

     

    Colin