retrying failed action with response code: 429 ({“type“=>“es

retrying failed action with response code: 429 ({“type“=>“es,第1张

retrying failed action with response code: 429 ({“type“=>“es

retrying failed action with response code: 429 ({“type”=>“es_rejected_execution_exception”, “reason”=>“rejected execution of processing of [2270115][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[ami-2022.01.11][1]] containing [88] requests, target allocation id: 5YhxGgIARSCv4iuDjL5lbg, primary term: 1 on EsThreadPoolExecutor[name = node-3/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6350cc09[Running, pool size = 40, active threads = 40, queued tasks = 212, completed tasks = 1345196]]”})

此错误是因为elasticsearch的写入到达瓶颈,拒绝来自logstash的写入请求

解决办法:

首先排除服务器的写入瓶颈,在此只介绍关于elasticsearch的线程池优化
elasticsearch.yml 加入一下配置

thread_pool.write.queue_size: 10000 # 写入队列大小
thread_pool.write.size: 41 # 核心线程池 +1
indices.memory.index_buffer_size: 30%

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5706628.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存