Ignore inactive elastic nodes
authorBill Erickson <berickxx@gmail.com>
Tue, 1 Oct 2019 18:45:31 +0000 (14:45 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 17 Jan 2020 19:36:02 +0000 (14:36 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Elastic.pm

index be430e5..c5a87df 100644 (file)
@@ -110,7 +110,7 @@ sub load_config {
     my $e = new_editor();
     my $cluster = $self->cluster;
 
-    $self->{nodes} = $e->search_elastic_node({cluster => $cluster});
+    $self->{nodes} = $e->search_elastic_node({cluster => $cluster, active => 't'});
 
     unless (@{$self->nodes}) {
         $logger->error("ES no nodes defined for cluster $cluster");