cluster api

 

https://www.elastic.co/guide/en/elasticsearch/reference/6.5/cluster-health.html


# If no filters are given, the default is to select all nodes
GET /_nodes

# Explicitly select all nodes
GET /_nodes/_all

# Select just the local node
GET /_nodes/_local

# Select the elected master node
GET /_nodes/_master

# Select nodes by name, which can include wildcards
GET /_nodes/node_name_goes_here
GET /_nodes/node_name_goes_*

# Select nodes by address, which can include wildcards
GET /_nodes/10.0.0.3,10.0.0.4
GET /_nodes/10.0.0.*

# Select nodes by role
GET /_nodes/_all,master:false
GET /_nodes/data:true,ingest:true
GET /_nodes/coordinating_only:true

# Select nodes by custom attribute (e.g. with something like `node.attr.rack: 2` in the configuration file)
GET /_nodes/rack:2
GET /_nodes/ra*:2
GET /_nodes/ra*:2*

 


GET _cluster/health
GET _cluster/health/inventory2

 

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章