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


=== Thread pool related ===
===Thread pool related===
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html
  /_cluster/settings?pretty&include_defaults=true | grep processors
  /_cluster/settings?pretty&include_defaults=true | grep processors


==== get maximum number of threads info ====
====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"
  curl "127.1:9200/_cat/thread_pool?v&h=ip,node_name,id,name,max,size,queue_size,queue,active,rejected&pretty"


=== cluster settings ===
===cluster settings===
  /_cluster/settings?include_defaults=true&pretty
  /_cluster/settings?include_defaults=true&pretty


第28行: 第28行:


;
;
;- new version shard allocation config  
;- new version shard allocation config
:cluster.routing.allocation.node_concurrent_recoveries
:cluster.routing.allocation.node_concurrent_recoveries


第44行: 第44行:
     }
     }
  }
  }
  [[分类:Elasticsearch]]
  [[分类:Elasticsearch]]
{{DEFAULTSORT:api随记}}
{{DEFAULTSORT:api随记}}

2021年4月13日 (二) 15:36的版本

health

/_cat/health
/_cluster/health

nodes

/_cat/nodes

cluster allocation explain

/_cluster/allocation/explain

shards

/_cat/shards
/_cat/shards?index=index_name

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,size,queue_size,queue,active,rejected&pretty"

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
                }
            }
        }
    }
}