前言

当随着项目的增加或项目日志的大量增加,会出现es的报错,此时需要进行相应的处理

报错输出内容

[circuit_breaking_exception][父级]数据太大,[<http_request>] 的数据将是 [999750592/953.4mb], 大于 [986932838/941.2mb] 的限制,实际使用量: [999750592/953.4mb],保留新字节:[0/0b],用法 [请求]0/0b, 字段数据=3675/3.5kb,in_flight_requests=0/0b,会计=58848

  • 如下为报错完整输出内容
    在这里插入图片描述
解决方法

配置文件添加如下内容

]# cat >> elasticsearch.yml <<-EOF
indices.breaker.total.use_real_memory: false
indices.breaker.total.limit: 60%
indices.fielddata.cache.size: 45%
indices.requests.cache.size: 2%
indices.breaker.fielddata.limit: 35%
indices.breaker.request.limit: 50%
network.breaker.inflight_requests.limit: 50%
indices.breaker.accounting.limit: 50%
EOF
结语

circuit breaker settings
Field data cache settings
限制内存使用

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐