2017-07-04T14:09:14Z||2017-07-04T14:09:14Z


respawn limit用在如果在规定时间内重启多少次,那么这种情况被视为比较严重,会停止继续重启。

默认是10 5,也就是如果5秒内重启10次的话,不会再重启了。

# respawn the job up to 10 times within a 5 second period.
# If the job exceeds these values, it will be stopped and
# marked as failed.
respawn
respawn limit 10 5

# respawn the job indefinitely
respawn limit unlimited

{ true}