elasticsearch中出现下面的问题怎么解决?
{"error":{"root_cause":[{"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [] would be [7201130054/6.7gb], which is larger than the limit of [7103712460/6.6gb], real usage: [7201129672/6.7gb], new bytes reserved: [382/382b], usages [request=0/0b, fielddata=19998/19.5kb, in_flight_requests=21400104/20.4mb, model_inference=0/0b, accounting=10053032/9.5mb]","bytes_wanted":7201130054,"bytes_limit":7103712460,"durability":"TRANSIENT"}],"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [] would be [7201130054/6.7gb], which is larger than the limit of [7103712460/6.6gb], real usage: [7201129672/6.7gb], new bytes reserved: [382/382b], usages [request=0/0b, fielddata=19998/19.5kb, in_flight_requests=21400104/20.4mb, model_inference=0/0b, accounting=10053032/9.5mb]","bytes_wanted":7201130054,"bytes_limit":7103712460,"durability":"TRANSIENT"},"status":429}
看提示是堆内存不够,每个批次小点写入试试 。 parent字段,占的内存高了 indices.breaker.fielddata.limit,indices.breaker.request.limit,indices.beeaker.total.limit ,这3个参数做了调整 PUT /_cluster/settings
{
"persistent": {
"indices.breaker.fielddata.limit": "60%"
}
}
PUT /_cluster/settings
{
"persistent": {
"indices.breaker.request.limit": "60%"
}
}
PUT /_cluster/settings
{
"persistent": {
"indices.breaker.total.limit": "95%"
}
}
掉了id排序,然后加大了刚刚发的参数,就行了。此答案整理自钉钉群“Elasticsearch中文技术社区”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。