# Supervisor 的一个隐藏坑

## 查 bug

/etc/sysctl.conf 中新增如上一些配置项。然后 sysctl -p 生效一波。开始看效果吧

= =好吧，现在怀疑，是不是 Supervisor 的问题，好的，文档翻阅大赛，开始

The minimum number of file descriptors that must be available before supervisord will start successfully. A call to setrlimit will be made to attempt to raise the soft and hard limits of the supervisord process to satisfy minfds. The hard limit may only be raised if supervisord is run as root. supervisord uses file descriptors liberally, and will enter a failure mode when one cannot be obtained from the OS, so it’s useful to be able to specify a minimum value to ensure it doesn’t run out of them during execution. These limits will be inherited by the managed subprocesses. This option is particularly useful on Solaris, which has a low per-process fd limit by default.