ES-PHP 聚合查询时 No alive nodes found in your cluster

文章目录

场景

  • 一个聚合查询,时间范围短时,正常响应; 时间范围长时,异常;查看日志 No alive nodes found in your cluster
  • 线下环境限于数据量的问题,无法复现

过程

  • 首先确定es是正常启动状态
  • 查了No alive nodes found in your cluster案列没有和自己一样的
  • 分析异常响应和正常的响应的区别,判断问题出在es设置上(内存)
  • 找到了
    • http.max_content_length The max content of an HTTP request. Defaults to 100mb

解决

  • http.max_content_length 根据机器配置来设置
发布了539 篇原创文章 · 获赞 83 · 访问量 99万+

猜你喜欢

转载自blog.csdn.net/cominglately/article/details/104918160