使用supervior 监控 elasticsearch 进程

elasticsearch引擎在使用中可能会出现后台守护进程挂掉的情况,需要手动启动来恢复正常。

这时则可以引用supervior进程管理工具来监控elasticsearch进程状态,实现进程挂掉自动重启的效果。

vi supervior.conf

 1 //elasticsearch进程配置
 2 [program:elasticsearch]
 3 command=sh /mnt/elasticsearch-6.3.2/bin/elasticsearch
 4 stderr_logfile=/var/log/Elastic.err.log
 5 stdout_logfile=/var/log/Elastic.out.log
 6 environment=JAVA_HOME=/usr/bin/java
 7 autostart=true
 8 autorestart=true
 9 startsecs=1
10 numprocs=1
11 user=elastic

 

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

编辑 /etc/security/limits.conf

root soft nofile 65536
root hard nofile 65536
elastic soft nofile 65536
elastic hard nofile 65536

转载于:https://www.cnblogs.com/houweijian/p/10614002.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值