Forum Discussion

sathish_2826's avatar
sathish_2826
Icon for Nimbostratus rankNimbostratus
Jan 07, 2019

Irule behavior when virtual servers are down

I know that when a virtual server is manually disabled, then no traffic is allowed to it, the irules attached to it won't be executed, i wanted to know, if the virtual server is in down state because of the associated pool member health check, and if there is an irule to the same vip, will the irule be executed?

 

4 Replies

  • Virtual server will process the iRule even if the pool members are down

     

  • iRules are applied to a virtual server (VS), so if a VS has been marked down as a result of pool members being unavailable then the iRule will not be executed.

     

    If the virtual server handles TCP traffic, then the default behavior is to respond to a request with a TCP RST in the event no pool members are available - as the connection is reset, there are no events for the iRule to execute, thus the iRule doesn't not execute under this condition.

     

    https://support.f5.com/csp/article/K9812

     

  • Hi,

     

    hopefully, if the default pool which is the one giving the virtual server status is down, irule are executed...

     

    it is required for scenario when you assign another pool for a specific URI and default pool is down!!! specific URI must continue to work.

     

    another scenario is when you want to respond with a maintenance page... how can the page displays if the irule can't execute!

     

  • Alfred's avatar
    Alfred
    Icon for Nimbostratus rankNimbostratus

    Agree with computerli. Just tested the VS and when though members are down (Red Diamond), iRule will process as long as it is enabled. If the VS is manually disabled, the iRule will not process.