elasticsearch 常用命令

 https://blog.csdn.net/qq_37129281/article/details/89293591

get _cluster/health

get _cluster/state

get _cluster/settings

get _cluster/pending_tasks

 

注:

get _cluster/health查看分片状态

get _cluster/state查看nodes,metadata, indices信息
get _cat/nodes?v

#查看ip|heap.percent|ram.percent |load_1m|load_5m|load_15m |node.role |master |name

get _nodes

get _nodes/stats

#这两条命令相同

#主要角色

"roles": [

        "master",

        "data",

        "ingest"

      ],

 

get _nodes/hot_threads

get _nodes/node-1/hot_threads

 

::: {node-1}{BxHQfpeBRPq4CLOk61bOIQ}{-EzwOWxpTwyoekXMsssNIw}{192.168.11.73}{192.168.11.73:9300}

Hot threads at 2017-11-16T05:14:55.330Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true:

   10.3% (51.3ms out of 500ms) cpu usage by thread 'elasticsearch[node-1][bulk][T#2]'

     9/10 snapshots sharing following 2 elements

    3.5% (17.5ms out of 500ms) cpu usage by thread 'elasticsearch[node-1][refresh][T#1]'

     10/10 snapshots sharing following 2 elements
原文地址:https://www.cnblogs.com/deny/p/15066630.html