Skip to content

preload pegasus app in unicorn config - #11930

Merged
wjordan merged 1 commit into
stagingfrom
preload_unicorn
Nov 16, 2016
Merged

preload pegasus app in unicorn config#11930
wjordan merged 1 commit into
stagingfrom
preload_unicorn

Conversation

@wjordan

@wjordan wjordan commented Nov 16, 2016

Copy link
Copy Markdown
Contributor

Followup to #11598 and #11867.

Set preload_app=true for the Pegasus Unicorn configuration, which will cause the pegasus upgrade service to wait until it's fully booted, and return non-zero exit code if it can't start properly. This fixes the 'spawn loop' issue.

Documentation:

Using #preload_app=false (the default) means you must check if your application is responding properly after a deployment. Improperly deployed applications can go into a spawn loop if the application fails to load. While your children are in a spawn loop, it is is possible to fix an application by properly deploying all required code and dependencies. Using #preload_app=true means any application load error will cause the master process to exit with an error.

(Dashboard already uses preload_app=true)

this will cause the `pegasus upgrade` service to wait until it's fully booted, and return non-zero exit code if it can't start properly.
@wjordan

wjordan commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

fyi @Bjvanminnen

@wjordan
wjordan merged commit 6df9183 into staging Nov 16, 2016
@wjordan
wjordan deleted the preload_unicorn branch November 16, 2016 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant