解决supervisor无法启动es的问题

问题描述

虚拟机ubuntu18.04 es6.3.0 修改network.host: 0.0.0.0后终端能正常启动es,而supervisor却启动失败

报错如下

[2018-08-07T16:42:03,539][INFO ][o.e.d.DiscoveryModule    ] [jx0BXwT] using discovery type [zen]
[2018-08-07T16:42:05,009][INFO ][o.e.n.Node               ] [jx0BXwT] initialized
[2018-08-07T16:42:05,010][INFO ][o.e.n.Node               ] [jx0BXwT] starting ...
[2018-08-07T16:42:05,247][INFO ][o.e.t.TransportService   ] [jx0BXwT] publish_address {192.168.163.134:9300}, bound_addresses {[::]:9300}
[2018-08-07T16:42:05,297][INFO ][o.e.b.BootstrapChecks    ] [jx0BXwT] bound or publishing to a non-loopback address, enforcing bootstrap checks

ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2018-08-07T16:42:05,322][INFO ][o.e.n.Node               ] [jx0BXwT] stopping ...
[2018-08-07T16:42:05,371][INFO ][o.e.n.Node               ] [jx0BXwT] stopped
[2018-08-07T16:42:05,372][INFO ][o.e.n.Node               ] [jx0BXwT] closing ...
[2018-08-07T16:42:05,385][INFO ][o.e.n.Node               ] [jx0BXwT] closed
[2018-08-07T16:42:05,388][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

解决方法

sudo vim /etc/supervisor/supervisord.conf 

[supervisord]中添加

minfds=65536
minprocs=32768

重启 supervisor 服务可解决

sudo service supervisor restart

参考

未经允许不得转载:晨飞小窝 » 解决supervisor无法启动es的问题

赞 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址