[2018-02-28T02:08:43,075][INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 429 ({"type"=>"es_rejected_execution_exception", "reason"=>"rejected execution of org.elasticsearch.transport.TransportService$7@2a30af2c on EsThreadPoolExecutor[bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6683707e[Running, pool size = 16, active threads = 16, queued tasks = 231, completed tasks = 2546983]]"})
求教如何解决
求教如何解决
3 个回复
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
hexiaohong
赞同来自:
直接访问http://你的IP:9200/_nodes/thread_pool/?pretty
二、修改1.在elasticsearch.yml配置文件最后加上:thread_pool.search.queue_size: 2000
2.重启ES
补充:
动态配置:
curl -XPUT '你的IP:9200/_cluster/settings' -d '{
"transient": {
"thread_pool.search.size": 20
}
}'
好像5以上都不支持动态修改,会报如下错误,只能加在配置
{
"error":{
"reason":"transient setting [thread_pool.search.queue_size], not dynamically updateable",
"root_cause":[{
"reason":"transient setting [thread_pool.search.queue_size], not dynamically updateable",
"type":"illegal_argument_exception"
}],
"type":"illegal_argument_exception"
},
"status":400
}
zqc0512 - andy zhou
赞同来自: