supervisor监管进程max file descriptor配置不生效的问题

配置了
sudo vim /etc/security/limits.conf
* soft nofile
* hard nofile
 
单独起进程没问题, 放到supervisor下监管启动,则报错
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
 
原因: 应该是supervisor监管的进程配置来自于supervisor所在环境配置, supervisor需要重启进程才能加载最新环境配置。
 
解决办法: kill supervisor进程,重启supervisor。(有时候服务器重启,启动supervisor都不会生效,需要手动kill然后重启才行。 不清楚哪里是什么坑。)
 
上一篇:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]


下一篇:k8s 部署elasticsearch报 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]