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


异常信息
{"root_cause":[{"type":"circuit_breaking_exception",
"reason":"[parent] Data too large, data for [<http_request>] would be [2904434582/2.7gb], which is larger than the limit of [2856189952/2.6gb], 
real usage: [2904434088/2.7gb],
new bytes reserved: [494/494b], 
usages [request=0/0b, fielddata=982500/959.4kb, in_flight_requests=494/494b, accounting=1348314/1.2mb]",
"bytes_wanted":2904434582,
"bytes_limit":2856189952,
"durability":"PERMANENT"}]

what’s [parent] ?Elasticsearch-circuit_breaking_exception [parent] Data too large, data for [<http_request>]_Elasticsearch_02


不同版本的配置的差异

之前用的6.4 ,后来升级到7.6以后,测试环境 es内存 4G , 时不时地来一下…


ES6.4

https://www.elastic.co/guide/en/elasticsearch/reference/6.4/circuit-breaker.html#circuit-breaker

Elasticsearch-circuit_breaking_exception [parent] Data too large, data for [<http_request>]_数据库_03


ES7.6

https://www.elastic.co/guide/en/elasticsearch/reference/7.6/circuit-breaker.html#circuit-breaker

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


Solutions

Elasticsearch-circuit_breaking_exception [parent] Data too large, data for [<http_request>]_数据库_05

增加

indices.breaker.total.use_real_memory: false 

重启ES

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