运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

【Linux】【Kibana】解决Kibana启动失败:Data too large问题

运维开发网 https://www.qedev.com 2020-07-21 13:06 出处:网络
  今天重启Kibana容器,结果启动不了,一看日志发现是Data数据量太大报错。

  今天重启Kibana容器,结果启动不了,一看日志发现是Data数据量太大报错。

FATAL  [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb], with { bytes_wanted=250592200 & bytes_limit=246546432 & durability="PERMANENT" } :: {"path":"/.kibana","query":{},"statusCode":429,"response":"{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb]\",\"bytes_wanted\":250592200,\"bytes_limit\":246546432,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb]\",\"bytes_wanted\":250592200,\"bytes_limit\":246546432,\"durability\":\"PERMANENT\"},\"status\":429}"}

  数据量太大导致内存不足,可以设置fielddata的内存限制,默认60%

  • curl -u elastic -XPUT "ip:port/_cluster/settings" -H ‘Content-Type: application/json‘ -d ‘{ "persistent" : { "indices.breaker.fielddata.limit" : "40%" } }‘
  • -u elastic 为elasticsearch的用户验证,没有设置可以不加

【Linux】【Kibana】解决Kibana启动失败:Data too large问题

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号