简体   繁体   English

如何在Elasticsearch中确定哪些节点离开了集群

[英]How to identify which nodes left cluster in elasticsearch

I am trying to find if any API or options are available with elasticsearch cluster to find the list of nodes which are down. 我正在尝试寻找与Elasticsearch集群一起使用的API或选项是否可用,以查找出现故障的节点列表。

I can currently see the status and nodes which are part of the cluster. 目前,我可以看到群集中的状态和节点。 But how do we find if couple of servers are down and left the cluster. 但是,我们如何确定几个服务器是否已关闭并离开集群。

You can hit http://localhost:9200/_nodes/stats , Please refer Node API https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html for more information, it will list the nodes which are currently online. 您可以访问http://localhost:9200/_nodes/stats ,有关更多信息,请参考Node API https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/cluster-nodes-stats.html ,它将列出当前在线的节点。

To know the offline nodes, I don't think there is any API, you can use monitor tools like Nagios to see if any node is currently down. 要了解脱机节点,我认为没有任何API,可以使用Nagios等监控工具来查看当前是否有任何节点处于关闭状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM