elk,logstash ->elastcisearch 429

logstash log出现

01:44:50.412 [[main]>worker14] 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@45d0f0be on EsThreadPoolExecutor[bulk, queue capacity = 100, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6bf39a64[Running, pool size = 32, active threads = 32, queued tasks = 60, completed tasks = 7071143]]"})

说明

es 线程队列已满,不能再处理新请求了.

处理

  1. 我先修改了es的jvm参数 -Xss1m -> Xss10m
  2. elasticsearch.yml修改bulk.queue大小 thread_pool.bulk.queue_size: 100 .从默认60修改为100.

未能解决.logstash继续出log,这次的 queued tasks = 100.

再查询资料.可能是logstash发送速度过快导致.

  1. 修改logstash.yml配置

默认

#   pipeline:
#     batch:
#       size: 125
#       delay: 5
#

改为

pipeline.batch.size: 1500
pipeline.batch.delay: 200

重启logstash,没有这样日志出现了

参考资料: https://blog.csdn.net/u013613428/article/details/77963604

转载于:https://my.oschina.net/superwen/blog/1808683

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值