什么是minUptime [英] What is the minUptime

查看:257
本文介绍了什么是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆