Elasticsearch的一些api随记:修订间差异
来自三线的随记
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
health | === health === | ||
/_cat/health | /_cat/health | ||
/_cluster/health | /_cluster/health | ||
nodes | |||
=== nodes === | |||
/_cat/nodes | /_cat/nodes | ||
cluster allocation explain | |||
=== cluster allocation explain === | |||
/_cluster/allocation/explain | /_cluster/allocation/explain | ||
shards | |||
=== shards === | |||
/_cat/shards | /_cat/shards | ||
/_cat/shards?index=index_name | /_cat/shards?index=index_name | ||
settings | |||
=== Thread pool related === | |||
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html | |||
/_cluster/settings?pretty&include_defaults=true | grep processors | |||
==== get maximum number of threads info ==== | |||
curl "127.1:9200/_cat/thread_pool?v&h=ip,node_name,id,name,max,queue_size,size,queue,rejected" | |||
=== cluster settings === | |||
/_cluster/settings?include_defaults=true&pretty | |||
/_cluster/settings?include_defaults=true | /_cluster/settings?include_defaults=true | ||
; - new version shard allocation config : | ; | ||
;- new version shard allocation config | |||
:cluster.routing.allocation.node_concurrent_recoveries | |||
# es 6.8.2 | # es 6.8.2 | ||
第29行: | 第44行: | ||
} | } | ||
} | } | ||
[[分类:Elasticsearch]] | |||
{{DEFAULTSORT:api随记}} | {{DEFAULTSORT:api随记}} |
2021年4月13日 (二) 15:29的版本
health
/_cat/health
/_cluster/health
nodes
/_cat/nodes
cluster allocation explain
/_cluster/allocation/explain
shards
/_cat/shards
/_cat/shards?index=index_name
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html
/_cluster/settings?pretty&include_defaults=true | grep processors
get maximum number of threads info
curl "127.1:9200/_cat/thread_pool?v&h=ip,node_name,id,name,max,queue_size,size,queue,rejected"
cluster settings
/_cluster/settings?include_defaults=true&pretty
/_cluster/settings?include_defaults=true
- - new version shard allocation config
- cluster.routing.allocation.node_concurrent_recoveries
# es 6.8.2 # PUT /_cluster/settings { "persistent": { "cluster": { "routing": { "allocation": { "node_initial_primaries_recoveries": 8 } } } } }