查询ES报错429 circuit_breaking_exception,“reason“:“[parent] Data too large, data for \[<http_request\>\]

这篇具有很好参考价值的文章主要介绍了查询ES报错429 circuit_breaking_exception,“reason“:“[parent] Data too large, data for \[<http_request\>\]。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

查询ES报错:429 Too Many Requests;circuit_breaking_exception,”reason”:”[parent] Data too large, data for [<http_request>]“

问题:ES查询报错:429 Too Many Requests;circuit_breaking_exception,“reason”:“[parent] Data too large, data for [<http_request>]”
原因:ES查询缓存占用内存过大,超过阈值(默认70%),查询请求拒绝。
解决:1.清除es缓存 2.修改缓存阈值限制

  • 修改ES查询缓存占用比例限制
PUT /_cluster/settings
{
  "persistent": {
    "indices.breaker.total.limit": "95%"
  }
} 
  • 清理filed data cache缓存

curl -XPOST 'http://localhost:9200/fdns/_cache/clear?fielddata=true'

  • 具体报错日志
2023-02-07 14:43:09.473 INFO  -- [ttp-nio-45560-exec-9] nV01ResFullTextQueryController        getResCascade: 102 :根据条件获取资源====query/allRes参数为:start getResCascade param=={"accurateParams":{"resTypeId":"MOD_BUSI_SYS"},"includeSubRegionRes":false,"includeSubSysRes":false,"mateParams":{},"mustExists":[],"needExt":false,"notExists":[],"pageNo":1,"pageSize":99999,"rangeParams":[],"sortMap":{"resName":"DESC"},"sortStr":"\"resName.keyword\":{\"order\":\"desc\"}","userAcc":"root"}
2023-02-07 14:43:09.475 ERROR -- [ttp-nio-45560-exec-9] ra.cmdb.common.util.es.ES7Util   searchTotalAndData: 502 :查询数据失败:org.elasticsearch.client.ResponseException: method [POST], host [http://BIT-5:45070], URI [/bit-matrix2124_cmdb_trans_index/_search], status line [HTTP/1.1 429 Too Many Requests]
{"error":{"root_cause":[{"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [<http_request>] would be [26573653640/24.7gb], which is larger than the limit of [26521423052/24.6gb], real usage: [26573653264/24.7gb], new bytes reserved: [376/376b], usages [request=504/504b, fielddata=43375615/41.3mb, in_flight_requests=376/376b, accounting=296499042/282.7mb]","bytes_wanted":26573653640,"bytes_limit":26521423052,"durability":"PERMANENT"}],"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [<http_request>] would be [26573653640/24.7gb], which is larger than the limit of [26521423052/24.6gb], real usage: [26573653264/24.7gb], new bytes reserved: [376/376b], usages [request=504/504b, fielddata=43375615/41.3mb, in_flight_requests=376/376b, accounting=296499042/282.7mb]","bytes_wanted":26573653640,"bytes_limit":26521423052,"durability":"PERMANENT"},"status":429}
	at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
	at com.ultra.cmdb.common.util.es.ES7Util.doQuery(ES7Util.java:239)
	at com.ultra.cmdb.common.util.es.ES7Util.searchTotalAndData(ES7Util.java:481)
	at com.ultra.cmdb.dao.cmdb.EsDaoEs7Impl.getPageNodeByQueryJson(EsDaoEs7Impl.java:235)
	at com.ultra.cmdb.service.es.impl.ESServiceImpl.getPageNodeByQueryJson(ESServiceImpl.java:1514)
	at com.ultra.cmdb.service.es.impl.ESServiceImpl.queryResByUserIdV2(ESServiceImpl.java:831)
	at com.ultra.cmdb.service.es.impl.ESServiceImpl.getResListByParam(ESServiceImpl.java:1179)
	at com.ultra.cmdb.service.resource.ResFullTextQueryServiceImpl.getResCascade(ResFullTextQueryServiceImpl.java:378)
	at com.ultra.cmdb.service.resource.ResFullTextQueryServiceImpl$$FastClassBySpringCGLIB$$35469f9.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
	at com.ultra.cmdb.service.resource.ResFullTextQueryServiceImpl$$EnhancerBySpringCGLIB$$cea20b7e.getResCascade(<generated>)
	at com.ultra.cmdb.web.controller.open.v01.OpenV01ResFullTextQueryController.getResCascade(OpenV01ResFullTextQueryController.java:106)
	at sun.reflect.GeneratedMethodAccessor816.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at com.ultra.cmdb.xss.XssFilter.doFilter(XssFilter.java:48)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at com.ultrapower.msa.sdk.oauth.MsaAuthenticationFilter.doFilter(MsaAuthenticationFilter.java:77)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

2023-02-07 14:43:09.475 INFO  -- [ttp-nio-45560-exec-9] tra.cmdb.dao.cmdb.EsDaoEs7Impl tPageNodeByQueryJson: 237 :get page node by query json es query json index:bit-matrix2124_cmdb_trans_index, cost:1, queryStr:{"track_total_hits":true,"query":{"bool":{"must":[{ "match_phrase" : { "resTypeId.keyword" : "MOD_BUSI_SYS" }}   ]  } },"from":0,"size":99999 ,"sort": {"resName.keyword":{"order":"desc"}}}
2023-02-07 14:43:09.475 INFO  -- [ttp-nio-45560-exec-9] ce.ResFullTextQueryServiceImpl        getResCascade: 380 :esSvs.getResListByParam cost : 1 ms
2023-02-07 14:43:09.475 INFO  -- [ttp-nio-45560-exec-9] nV01ResFullTextQueryController        getResCascade: 114 :根据条件获取资源===query/allRes结果为: end getResCascade total rows:null, cost:2

参考
Elasticsearch circuit_breaking_exception, Data too large异常案例

Kibana查询ES报错:[circuit_breaking_exception] [parent] Data too large

Elasticsearch-circuit_breaking_exception [parent] Data too large, data for [<http_request>]

Elasticsearch circuit_breaking_exception, Data too large异常案例文章来源地址https://www.toymoban.com/news/detail-530501.html

到了这里,关于查询ES报错429 circuit_breaking_exception,“reason“:“[parent] Data too large, data for \[<http_request\>\]的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 使用linux命令查询es报错

    近期遇到一个问题,生产环境没有elasticsearch-head,需要用linux命令查询es,所以我从网上搜索到查询的命令执行,但是却报403: 报错信息: {\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"transport_exception\\\",\\\"reason\\\":\\\"Forbidden\\\"}],\\\"type\\\":\\\"transport_exception\\\",\\\"reason\\\":\\\"Forbidden\\\"},\\\"status\\\":403} 因为在测试环境使用elastics

    2024年02月12日
    浏览(49)
  • elasticSearch大量数据查询导出报错解决es

    elasticsearch的client包下的HeapBufferedAsyncResponseConsumer类中传入了bufferLimit,该值 org.apache.http.nio.protocol.HttpAsyncResponseConsumer 的默认实现。在堆内存中缓冲整个响应内容,这意味着缓冲区的大小等于响应的内容长度。根据可配置的参数限制可以读取的响应的大小。如果实体长于配置

    2023年04月16日
    浏览(43)
  • conda出现http429报错:CondaHTTPError: HTTP 429 TOO MANY REQUESTS for url <xxx>

    我的报错信息如下: 在报错的第一行我们可以看到是url:https://mirrors. ustc .edu.cn/anaconda/pkgs/main/linux-64/current_repodata.json有问题,只要 把和ustc相关的源删掉 就好了,步骤如下: 查看该环境下的所有channel (channel就是源,用来找你要安装的包的) 执行命令后,我的电脑上显示:

    2024年04月27日
    浏览(38)
  • java查询ES数据时,报错missing authentication credentials for REST request

     通过java代码查询ES里数据时,报错缺少身份认证凭证,但在注册RestClient的时候已经提供了用户名、密码,并且测试环境没有出现这个问题,生产环境报错。 如下,在查询数据时new了ElasticsearchClient,使用该客户端进行查询,注册client时提供了用户密码 注册client的代码  网上

    2024年04月17日
    浏览(39)
  • 当es使用script脚本查询聚合等操作遇到空字段报错问题解决方案

            在使用ES的脚本时,如果脚本中引用了不存在或者空的字段,则会导致脚本执行失败并抛出错误。这是因为ES会在脚本执行之前尝试检索引用的字段,如果该字段不存在则会抛出异常。         因此,在使用ES脚本时,需要确保所引用的字段都存在且不为空。可

    2024年02月11日
    浏览(50)
  • ES查询报错:entity content is too long [142501157] for the configured buffer limit [104857600]

    java - org.apache.http.ContentTooLongException: entity content is too long [105539255] for the configured buffer limit [104857600] - Stack Overflow 在生产环境批量同步数据的时候,我写了一个查询请求,然后直接报错: entity content is too long [142501157] for the configured buffer limit [104857600] 具体内容如下: 在 HttpAs

    2024年02月05日
    浏览(113)
  • ES 查询报错 I/O 异常解决方法: Request cannot be executed; I/O reactor status: STOPPED

    增加一个restClientBuilderCustomizer的bean 参考 https://www.shuzhiduo.com/A/kPzONDQadx/

    2024年02月06日
    浏览(33)
  • springboot中es查询报错:“failed to create querv:Cannot search on field [ableLook] since it is not indexed“

     报错情况如下:    原因:是因为es字段的 index 设置为 false 不可以通过这个字段进行搜索,比如:  解决:把false 改为 true 或是直接把 \\\"index\\\": false 去掉,默认index为ture

    2024年02月12日
    浏览(42)
  • 【Elasticsearch】ES精确查询和范围查询,ES时间字段排序实例,ES倒排索引介绍

    termQuery matchQuery 模糊查询 multiMatchQuery 多个字段模糊查询 如果时间字段写入时用的类型是Text,可以用“时间字段.keyword”来处理 #查询前传入分页参数 #分页后拿到总记录数 把文档D对应到的映射转换为到文档ID的映射,每个都对应着一系列的文档,这些文

    2024年02月15日
    浏览(113)
  • ES es Elasticsearch 十三 Java api 实现搜索 分页查询 复杂查询 过滤查询 ids查询 等

    目录 Java api 实现搜索 Pom.xml 建立链接 搜索全部记录 增加规则值查某些字段 搜索分页 全代码 Ids 搜索 搜索Match搜索 multi_match 搜索 多字段搜索 复杂查询 bool查询 filter  bool 复杂查询增加过滤器查询 复杂擦好像加排序 日志 思路 参考 api 写法 写Java代码 请求条件构建层次

    2024年02月04日
    浏览(57)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包