- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
问题:
自从从 ES-5.4 升级到 ES-7.2 后,当我尝试从我的多线程 Java 应用程序(使用 elasticsearch-rest-high-level-client-7.2.0.jar
java 客户端)写入并发批量请求(或/和搜索请求)时,我开始收到“数据太大”错误到 2-4 个节点的 ES 集群。
我的 ES 配置:
Elasticsearch version: 7.2
custom configuration in elasticsearch.yml:
thread_pool.search.queue_size = 20000
thread_pool.write.queue_size = 500
I use only the default 7.x circuit-breaker values, such as:
indices.breaker.total.limit = 95%
indices.breaker.total.use_real_memory = true
network.breaker.inflight_requests.limit = 100%
network.breaker.inflight_requests.overhead = 2
{
"error": {
"root_cause": [
{
"type": "circuit_breaking_exception",
"reason": "[parent] Data too large, data for [<http_request>] would be [3144831050/2.9gb], which is larger than the limit of [3060164198/2.8gb], real usage: [3144829848/2.9gb], new bytes reserved: [1202/1.1kb]",
"bytes_wanted": 3144831050,
"bytes_limit": 3060164198,
"durability": "PERMANENT"
}
],
"type": "circuit_breaking_exception",
"reason": "[parent] Data too large, data for [<http_request>] would be [3144831050/2.9gb], which is larger than the limit of [3060164198/2.8gb], real usage: [3144829848/2.9gb], new bytes reserved: [1202/1.1kb]",
"bytes_wanted": 3144831050,
"bytes_limit": 3060164198,
"durability": "PERMANENT"
},
"status": 429
}
最佳答案
原因是节点的堆已经满了,被断路器捕获是很好的,因为它可以防止节点运行到 OOM 中,变得陈旧和崩溃......
Elasticsearch 6.2.0介绍了断路器并在 7.0.0 中对其进行了改进.随着从 ES-5.4 到 ES-7.2 的版本升级,您将直接体验到这一改进。
到目前为止,我看到了 3 个解决方案:
关于Elasticsearch 7.x 断路器 - 数据过大 - 故障排除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60075253/
断路器工作原理 1、 如果经过断路器的流量超过了一定的阈值,HystrixCommandProperties.circuitBreakerRequestVolumeThreshold(); 举个例
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 3 年前。 Improve this ques
我正在尝试设计一个断路器/开关,它可以在某些事件中关闭和打开。我使用 SVG 设计了断路器,并使用 css 动画和转换属性来为它的关闭设置动画。 使用 transform-origin: bottom
在 Hadoop YARN 集群中使用 Apache Spark 1.6.2。 一些(简单的)查询会消耗大量资源,我看到我们的开发人员针对 1To 文件运行 SELECT * FROM DB!因此,它
我知道没有办法杀死 iframe 断路器......但是,我想知道,有没有办法优雅地处理它。 到目前为止,我在退出之前设法检测到它,使用 .我想知道是否可以阻止它加载iframe或强制它在新窗口中打
我观察到 Hystrix 将所有来自命令的异常视为断路目的的失败。它包括从 command run() 方法抛出并由 Hystrix 本身创建的异常,例如HystrixTimeoutException
断路器(curcuit breaker)模式 在分布式环境下,特别是微服务结构的分布式系统中, 一个软件系统调用另外一个远程系统是非常普遍的。这种远程调用的被调用方可能是另外一个进程,或者是跨网路
有没有办法配置 Micronaut 断路器,使其不针对特定的 HTTP 状态代码打开?例如,如果我查找某个项目但未找到该项目,则服务器可能会返回 HTTP 状态 404。这可能是一个完全有效的响应,我
问题: 自从从 ES-5.4 升级到 ES-7.2 后,当我尝试从我的多线程 Java 应用程序(使用 elasticsearch-rest-high-level-client-7.2.0.jar j
在官方 https://spring.io/guides/gs/circuit-breaker/手册有 业务方法(阅读列表) 回退方法(可靠) @HystrixCommand(fallbackMeth
我想通过重试和 Hystrix 断路器实现 Apache Camel 路由。我的路线如下所示: ...... java.lang.Exception
想问一个关于两种技术的问题。 我们首先从一个必须调用其他第三方 rest API 的应用程序开始,因此,我们在 SpringBoot Webflux 项目中使用了 Webflux WebClient。
我是一名优秀的程序员,十分优秀!