Forum Discussion

Bhargav_Kesavan's avatar
Bhargav_Kesavan
Icon for Nimbostratus rankNimbostratus
Jun 21, 2018

Is this achievable? Mark a LTM VIP down if one of the Pool is down.

Hi All,

I've an LTM VIP, which has two pools V1, V2.

I've an iRule that directs URLs based on context path to respective Pools.

Currently, even if one pool goes down (underlying member nodes are down), LTM is still up & serves call to other Pool.

Is it possible to mark LTM VIP as down even if one Pool is down?

Because GTM will not mark LTM as down unless all pools under LTM is down & I want LTM to be down even if one Pool in LTM goes down.

We've the below iRule now

when HTTP_REQUEST {

                switch -glob [string tolower [HTTP::uri]] {

                "/test/v1/*" { pool BK7-TEST-8080 }
                "/example/v2/*" { pool BK7-EXAMPLE-8280 }
                                }
                }
  • Anesh's avatar
    Anesh
    Icon for Cirrostratus rankCirrostratus

    you can use use an user_alert.conf script to effectively disable the VIP by triggering TMSH commands on Syslog monitor events.

     

  • Anesh's avatar
    Anesh
    Icon for Cirrostratus rankCirrostratus

    OR you can create an external monitor for each pool and based on the pool member availability in each pool you can run tmsh commands to disable the virtual