[2022-08-18T00:01:10,147][ERROR][o.e.i.g.GeoIpDownloader ] [node-1] exception during geoip databases update
ingest.geoip.downloader.enabled: false
2024-10-08 17:44:11 27163 /home/meetbill/butterfly/xlib/httpgateway.py:99 reqid=6b3275c8-b3a8-4f37-8d31-b65fc158504d func_name=/vm_report/host_report_import err_msg=[Server exception
Traceback (most recent call last):
File "/home/meetbill/butterfly/xlib/protocol_json.py", line 194, in do_process
ret = self._func(**params)
File "/home/meetbill/butterfly/handlers/vm_report/api_vm_report.py", line 155, in host_report_import
es_res = es.index(index=index, id=es_id, document=host_doc)
File "/home/meetbill/butterfly/third/elasticsearch/client/utils.py", line 347, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/home/meetbill/butterfly/third/elasticsearch/client/__init__.py", line 418, in index
body=body,
File "/home/meetbill/butterfly/third/elasticsearch/transport.py", line 466, in perform_request
raise e
TransportError: TransportError(429, u'circuit_breaking_exception', u'[parent] Data too large, data for [<http_request>] would be [1006944446/960.2mb], which is larger than the limit of [986061209/940.3mb], real usage: [1006943096/960.2mb], new bytes reserved: [1350/1.3kb], usages [request=0/0b, fielddata=108215/105.6kb, in_flight_requests=1350/1.3kb, model_inference=0/0b, eql_sequence=0/0b, accounting=35637464/33.9mb]')
]
Data too large, data for [<http_request>] would be [8333415566/7.7gb],//A
which is larger than the limit of [8160437862/7.5gb], //B
real usage: [8333414416/7.7gb], //C
new bytes reserved: [1150/1.1kb] //D
这里有4个数值。
B处的数就是上限,超过这个就报错。(缺省是它是ES最大内存的95%,所以我判断你的-Xmx应该是8g)
C处的数值是你的本机上ES进程已使用的内存大小,
D处的数值1150就是你本次操作(或者说执行当前的任务)所需要内存,
C + D = A > B,所以报错了。
解决方法你可以增大-Xmx量(如果物理内存足够的话)等等。
当然,最省事的做法就是关闭CircuitBreaker检查。
indices.breaker.type: none
./bin/elasticsearch-setup-passwords interactive
... 会设置如下用户密码
Changed password for user [apm_system]
Changed password for user [kibana_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]