当前位置: 首页 > news >正文

ES写入数据报错:retrying failed action with response code: 429

报错:

使用logstash导入分片数量为9的index发生错误,[logstash.outputs.elasticsearch] retrying failed action with response code: 429 
({"type"=>"es_rejected_execution_exception", "reason"=>"rejected execution of processing of [12373521]
[indices:data/write/bulk[s][p]]: request: 
BulkShardRequest [[suricatadns140][97]] containing [2] requests, 
target allocation id: -erjXlg0RjeETfZKXokiiQ, 
primary term: 1 on EsThreadPoolExecutor[name = node-1/write, queue capacity = 200, 
org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@139538e0[Running, 
pool size = 8, active threads = 8, queued tasks = 200, completed tasks = 179152]]"})

原因:

因为导入的数据和ES写入的数据速度不匹配,ES为了保护自己,产生了拒绝

解决:

在ES的配置yml文件中添加:

thread_pool.write.queue_size: 10000
http://www.lryc.cn/news/177858.html

相关文章:

  • Redis给Lua脚本的调用
  • Spring工具类--ReflectUtils的使用
  • 联盟 | 彩漩 X HelpLook,AI技术赋能企业效率提升
  • MATLAB m文件格式化
  • ​分拆菜鸟将使阿里巴巴股票迎来新一轮上涨?
  • Excel 技巧记录-那些复杂的公式和函数
  • vue里使用elementui的级联选择器el-cascader进行懒加载的怎么实现数据回显?
  • Qt raise()问题
  • 26591-2011 粮油机械 糙米精选机
  • JavaScript位运算的妙用
  • This dependency was not found: vxe-table/lib/vxe-table in ./src/main.js
  • 网工内推 | H3C售前工程师,上市公司,13薪,有带薪年假、年终奖
  • 深入理解常见应用级算法思想
  • Windows下使用pybind11教程(python调用C++代码)
  • 基于通用LLM的一次测试用例自动生成的实验
  • 【excel密码】为什么工作表不能移动、复制了?
  • 软考高级之系统架构师之计算机基础
  • Mysql生产随笔
  • 现代卷积网络实战系列2:PyTorch构建训练函数、LeNet网络
  • leetCode 62.不同路径 动态规划 + 空间复杂度优化
  • 在 .NET 8 Release Candidate 1 中推出 .NET MAUI:质量
  • Spring 学习(八)事务管理
  • CodeTON Round 6 (Div 1 + Div 2, Rated, Prizes!)(A - E)
  • Spring 源码分析(五)——Spring三级缓存的作用分别是什么?
  • Django基于类视图实现增删改查
  • matplotlib绘图实现中文宋体的两种方法(亲测)
  • 非常有用的JavaScript高阶面试技巧!
  • windows 安装Linux子系统 Ubuntu 并配置python3
  • pytorch的pixel_shuffle转tflite文件
  • sentinel-dashboard-1.8.0.jar开机自启动脚本