elk錯誤:Too Many Requests

問題現象:

{"statusCode":429,"error":"Too Many Requests","message":"[circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [2032293344/1.8gb], which is larger than the limit of [2023548518/1.8gb], real usage: [2032293344/1.8gb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=595064631/567.4mb, in_flight_requests=0/0b, accounting=133685180/127.4mb], with { bytes_wanted=2032293344 & bytes_limit=2023548518 & durability=\"PERMANENT\" }"}

 

原因:

fielddata 緩存不夠

 

 

解決方案:

設置fielddata緩存佔用jvm內存的:

curl -XPUT "192.168.1.107:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{
  "persistent" : {
    "indices.breaker.fielddata.limit" : "50%" 
  }
}'

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章