Elasticsearch的一些api随记
来自三线的随记
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 } } } } }