EngineYard 中的 Cron 进程不断被杀死
我的 Engineyard 应用程序中不断收到“FAILURE Process cron: is down”警报。几分钟后,我收到后续警报,提到该过程已再次恢复。以前有人注意到这个问题吗?
I keep getting "FAILURE Process cron: is down" alerts in my engineyard application. A few minutes later I get a follow-up alert mentioning that the process is back up again. Has anyone ever noticed this issue before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,engineyard 期望 cron 条目每分钟接触一个文件:
一个名为 cron_nanny (/engineyard/bin/cron_nanny) 的配套脚本检查所接触文件的修改时间,如果它早于 120 秒,则会终止 crond 进程并重新启动。
我碰巧删除了自定义厨师食谱中的所有 cron 条目,这导致 touch cron 作业被删除,因此每隔 120 秒左右 cron_nanny 脚本就会重新启动该进程。
It turns out that engineyard is expecting a cron entry to touch a file every minute:
A compannion script called cron_nanny (/engineyard/bin/cron_nanny) checks the modification time of the touched file and if it is older than 120 seconds kills the crond process and restarts.
I happend to be deleting all cron entries in my custom chef-recipes, which caused the touch cron job to be removed, so every 120 seconds or so the cron_nanny script would restart the process.