Forum Discussion

James_Nur_16968's avatar
James_Nur_16968
Icon for Nimbostratus rankNimbostratus
Sep 10, 2014

Disable all nodes in pool if one node health check failed

I have a pool of 20 search engines in federated mode. If one node (or more) is down, the search query against this pool will not return a full search results, which is bad for customer.

 

Currently in this scenario I manually disable all nodes and then a GTM will automatically divert traffic to another in different DC while bring all nodes healthy before enabling all nodes again.

 

I would like automate the disabling/enabling of all nodes in such scenario. Can this be done?

 

1 Reply

  • brice's avatar
    brice
    Icon for Nimbostratus rankNimbostratus

    I would look at writing an irule for the wideip on the gtm that uses nodes_up to determine if < 20 pool members are up. I've never used this, and the documentation seems a bit light on the subject, but something like this ~might~ work...

    when LB_SELECTED {
      if { nodes_up [LB::server addr] < 20 } {
        LB::reselect
      }
    }