Forum Discussion

Syslog-V_277002's avatar
Syslog-V_277002
Icon for Nimbostratus rankNimbostratus
Nov 08, 2017

Event on MEMBER down

Hi all, I need to run an iRule when a member (NOT the pool / LB_FAILED) of the pool changes its state. Which is the correct event to track?

 

Thanks

 

1 Reply

  • iRules don't execute on pool members going down, they are event driven based on traffic traversing the device. However you can check the status of the pool in CLIENT_ACCEPTED (TCP handshake would need to be completed before the pool members are checked) such as using

    active_members

    to see see if the number of active members has changed or below a threshold.

     

     

    when CLIENT_ACCEPTED {
      if { [active_members http_pool] >= 2 } {
        pool http_pool
      }
    }
    

     

    Are you able to elaborate anymore on your requirement?