Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a "restartpause" option #509

Closed
wants to merge 1 commit into from
Closed

Conversation

fclairamb
Copy link

This allows to set a pause between the restarts of the program.

Typically, when you restart a database server, this can take few minutes and the backoff delay won't be enough. With a restart pause delay of something like 30 seconds, this becomes a lot less likely.
The alternative is to increase the number of start retries, but on system startup and/or when many programs fail at the same time (usually for the same reason), it creates an unnecessary workload on the host.

This changes the behaviors in two scenarios:

  • Applied on startup failure additionally to the backoff delay
  • Applied on bad exit status

Default value is 0, which doesn't change the existing behavior.

It is mostly a proposal at this stage. We could also allow to change the backoff increment (which is hardcoded to 1 at the current stage) or only the backoff base delay.

* Applied on startup failure aditionnaly to the backoff delay
* Applied on bad exit status

Default value is 0, which doesn't change the existing behavior.

The goal is to impose a minimum delay between restarts to avoid overloading host with restarts.
@oryband
Copy link

oryband commented Jun 8, 2015

👍

@willybarro
Copy link

@mnaberez @mcdonc Hey guys, any reason (asides from time) for this pull request not being accepted/reviewed? There's another thread with over 15 👍 guys wanting this feature badly.

@oryband
Copy link

oryband commented Jun 30, 2015

@oryband
Copy link

oryband commented Jun 30, 2015

@doodyparizada
Copy link

👍

1 similar comment
@mrook
Copy link

mrook commented Jul 14, 2015

+1

@miso-belica
Copy link

@Supervisor is there any problem with this PR. There is also #487 where people ask for this. Is there something I can help with?

@pfuender
Copy link

PR #659 is based on your work, fclairamb and includes fixed for the tests. Wish me luck ;-)

@fclairamb
Copy link
Author

Thank you very much !!!

@fclairamb fclairamb closed this Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants