什么是minUptime [英] What is the minUptime
问题描述
我在项目中一直使用永远。这些选项的作用是什么?
I am using forever with my project. What do these options do:
-
minUptime
-
spinSleepTime
minUptime
spinSleepTime
我从GitHub页面不了解。 / p>
I didn't understand from GitHub page.
推荐答案
Forever的文档简要介绍每个脚本:
Forever's documentation explains each briefly:
--minUptime Minimum uptime (millis) for a script to not be considered "spinning"
--spinSleepTime Time to wait (millis) between launches of a spinning script.
旋转应用程序是在重新启动后不久仍会失败/崩溃的应用程序。
A "spinning" application is one that keeps failing/crashing shortly after a restart.
-minUptime
设置应用程序预期运行的最短时间。如果它在该限制之前崩溃,则认为是 旋转或有问题的。
--minUptime
sets the minimum amount of time that an application is expected to run. If it crashes before that limit, it's considered to be "spinning" or problematic.
-spinSleepTime
设置永远
要等待的时间,然后再次尝试重新启动 旋转应用程序。
--spinSleepTime
sets an amount of time that forever
will wait before trying to restart a "spinning" application again.
从总体上讲,它们有助于防止应用程序快速重启而每次崩溃都无法崩溃。
Collectively, they help prevent having an application rapidly being restarted only to crash each time.
这篇关于什么是minUptime的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!