cancel
Showing results for 
Search instead for 
Did you mean: 

Disable all nodes in pool if one node health check failed

James_Nur_16968
Nimbostratus
Nimbostratus

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 1

brice
Nimbostratus
Nimbostratus

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 } }