Forum Discussion

Jinshu_134425's avatar
Jinshu_134425
Icon for Nimbostratus rankNimbostratus
Feb 23, 2016

Irule Question

Hello Friends,

How can i create an Irule with below condition?

If active pool member count is less than or equal to 1, mark the virtual server down

-Jinshu

3 Replies

  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    irules don't mark virtual servers down, typically pool monitors do. I am confused though, isn't this the default behavior? If your pool has no available members, the vip should be unavailable too.

     

  • Nath's avatar
    Nath
    Icon for Cirrostratus rankCirrostratus

    I believed you don't need an Irule re this. You can configure this on health monitor level.

     

  • This VIP is a "dependent" for another GTM wide IP (another service). Since this VIP is not falling down, the GTM wide IP is still available and the service hosted on that wide ip still available.

     

    Consider VIP_A pool have 4 servers. My requirement is if three servers in the pool of VIP_A goes down, VIP_A needs to go down. Another GTM wide IP configured with VIP_A as dependency pool (Its dependency pool, not direct GTM pool). So if VIP_A not available, GTM will failover to another site where all servers available.

     

    I know this is crazy solution but this is the only way to failover two services if most of VIP_A pool members are down, I have found a way to do this using a script. Thanks for your help