hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
15 stars 4 forks source link

ES cluster problems when reboot weywot4 #466

Closed dr0i closed 3 years ago

dr0i commented 3 years ago

After rebooting weywot4 lobid's services were not working beacuse the elasticsearch cluster were not reachable, despite the fact that everything is configured redundantly with 3 nodes and enough shards. From /var/log/elasticsearch/weywot.log:

not enough master nodes discovered during pinging

The cause seems to be a misconfiguration at weywot5:/etc/elasticsearch/elasticsearch.yml, where discovery.zen.minimum_master_nodes was set to 3 instead of 2 like at weywot3. See https://stackoverflow.com/questions/52269434/elasticsearch-error-not-enough-master-nodes-discovered-during-pinging-although.

dr0i commented 3 years ago

Set it to 2 and restarted. Running good now :) Closing.