gpt4 book ai didi

java - elasticsearch 进程的最大文件描述符太低

转载 作者:IT王子 更新时间:2023-10-29 01:20:09 26 4
gpt4 key购买 nike

无法解决这些问题:

[2017-10-16T13:54:23,381][WARN ][o.e.b.BootstrapChecks    ] [node-1] max 
file descriptors [65000] for elasticsearch process is too low, increase to
at least [65536]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks ] [node-1] max
number of threads [1024] for user [appadm01] is too low, increase to at
least [2048]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks ] [node-1] system
call filters failed to install; check the logs and fix your configuration or
disable system call filters at your own risk

我执行了 sysctl -w fs.file-max=65536 但我得到了同样的结果。

最佳答案

对于使用 docker 运行 Elasticsearch 的用户,您可以通过如下所示的 docker run 命令设置 ulimit。

docker run --ulimit nofile=65536:65536 -p 9200:9200 --name elastic-search docker.elastic.co/elasticsearch/elasticsearch:6.4.2

希望这对 docker 用户有帮助

关于java - elasticsearch 进程的最大文件描述符太低,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46771233/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com