diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-08-20 13:04:29 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-08-21 09:55:49 +0000 |
commit | bd87e1b6146a211f8e62db6402cf337723472467 (patch) | |
tree | 6e68a92b7b1aa696cc40e6612a87813fa2c03f7a /configd/src/apps/sentinel/service.h | |
parent | 7aa39dd1e650c88989dec9d22188522603f2124e (diff) |
more restart penalty
* set max restart penalty to 30 minutes
* scale much faster (exponentially) to max restart penalty
* increment restart penalty when a service needs restarting
before 30 minutes have passed
* reset restart penalty when a service was OK for 5 hours
Diffstat (limited to 'configd/src/apps/sentinel/service.h')
-rw-r--r-- | configd/src/apps/sentinel/service.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configd/src/apps/sentinel/service.h b/configd/src/apps/sentinel/service.h index 6419fdd7268..54bf1105a77 100644 --- a/configd/src/apps/sentinel/service.h +++ b/configd/src/apps/sentinel/service.h @@ -26,7 +26,7 @@ private: SentinelConfig::Service *_config; bool _isAutomatic; - static const unsigned int MAX_RESTART_PENALTY = 60; + static const int MAX_RESTART_PENALTY = 1800; unsigned int _restartPenalty; time_t _last_start; |