ElasticSearch 查询监控

线程池配置查看

/_nodes/thread_pool?pretty

/_nodes/node-2/thread_pool?pretty

修改线程池配置

1、elasticsearch.yml

threadpool.index.type: fixed
threadpool.index.size: 100
threadpool.index.queue_size: 500
threadpool.bulk.queue_size: 1000

2、Rest API

curl -XPUT 'localhost:9200/_cluster/settings' -d '{
      "transient": {
      "threadpool.index.type": "fixed",
      "threadpool.index.size": 100,
      "threadpool.index.queue_size": 500
}

线程池当前运行状态查看

/_cat/thread_pool?v

/_nodes/stats?pretty

/_nodes/node-2/stats?pretty

/_nodes/node-1/thread_pool?pretty

https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html

猜你喜欢

转载自www.cnblogs.com/knowledgesea/p/10019187.html