-
elasticsearch启动后查看是否启动成功:
curl -XGET"http://$(hostname):9200/_cluster/health?pretty=true"
-
停止elasticsearch应用:
curl -XPOST "http:// $(hostname):9200/_shutdown"
-
查看集群健康:
curl $(hostname):9200/_cluster/health?pretty
-
检查集群状态:
curl $(hostname):9200/_cluster/stats?pretty
-
节点状态:
curl $(hostname):9200/_nodes/process?pretty curl $(hostname):9200/_nodes/node1/process?pretty
-
当你不知道有那些属性可以查看时:
curl '$(hostname):9200/_cat/'
会返回可以查看的属性
elasticsearch 查看集群健康和节点状态
未经允许不得转载:陈桂林博客 » elasticsearch 查看集群健康和节点状态