How to get the list of nodes which left the cluster?

How to do we find the servers which are down and left the cluster?

I have 8 data nodes and 3 master nodes. Its very difficult to go through each server to find status of each server.

I can see the list of nodes which are part of cluster but how do we find the servers which are down?


There is no way for Elasticsearch to answer this question, because there is no way for Elasticsearch to tell the difference between a node that failed and a node that was deliberately removed from the cluster. You need to compare the list of nodes in the cluster to your own external list of the nodes that you expect to be in the cluster.

If it is deliberately removed from cluster then it will be removed from config, right? Otherwise the cluster will always show status red.

Recently couple of servers were rebooted nd 2 nodes didn't start elasticsearch. I was cross checking entire 11 servers to find out which one is down. Think about if we have more servers.
I believe if the servers are not removed from config then it should consider as part of cluster nd any servers not joined in cluster, it should report it.

Which config? Perhaps you are thinking of This should only really contain the addresses of the master-eligible nodes and it's ok if it doesn't always contain them all.

Understand. Thanks for the explanation.

1 Like

Based on my past experience, one quick way is to look at the Master logs. When a node leaves the cluster, one of the logs about node getting removed from cluster is printed inside the master logs. That can be helpful for you to determine which node has left the cluster.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.