10000 Avoid Supervisord to go in fatal error by orangevinz · Pull Request #13512 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Avoid Supervisord to go in fatal error #13512

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

Merged
merged 1 commit into from
Apr 9, 2020
Merged

Conversation

orangevinz
Copy link
Contributor
@orangevinz orangevinz commented Apr 8, 2020

startsecs: The total number of seconds which the program needs to stay running after a startup to consider the start successful (moving the process from the STARTING state to the RUNNING state).
Set to 0 to indicate that the program needn’t stay running for any particular amount of time.

Default : 1

It means that if you have for instance a --limit=1 and your program has finished before 1 second, Supervisord will consider it failed.
After 3 times (cf startretries value), your process won't run anymore, considering that too many occured quickly.

Apparently it's a good pratice to set this value to 0, specially with php.

Doc : http://supervisord.org/configuration.html?highlight=startsecs

@javiereguiluz
Copy link
Member

Your proposal indeed looks like a better default value for this sample config. Thanks!

`startsecs`: The total number of seconds which the program needs to stay running after a startup to consider the start successful (moving the process from the `STARTING` state to the `RUNNING` state).
Set to 0 to indicate that the program needn’t stay running for any particular amount of time.

Default : 1

It means that if you have a `--limit=1` and your program has finished before 1 second, Supervisord will consider it failed.
After 3 times (cf `startretries` value), your process wo'nt run anymore considering too many errors, quicky.

Apparently it's a good pratice to set this value to `0`, specially with php.

Doc : http://supervisord.org/configuration.html?highlight=startsecs
@javiereguiluz javiereguiluz changed the base branch from 5.0 to 4.4 April 9, 2020 06:41
@javiereguiluz javiereguiluz merged commit 06cb8b8 into symfony:4.4 Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0