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

新手上路,请多包涵

无法解决这些问题:

 [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 但我得到了同样的结果。

原文由 F.BOU 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 406
1 个回答

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

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

希望这对 docker 用户有所帮助

原文由 arunjos007 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题