前言
当随着项目的增加或项目日志的大量增加,会出现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