≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1678

Feature request #1678: script/deploy: rewrite "restart" task to use USR2 signal

Kind feature request
Product wincent.dev
When Created 2010-09-01T20:31:39Z, updated 2010-09-11T11:17:36Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

Currently our restart subcommand is just a stop followed by a start.

Try for zero downtime deployments by adding a new restart task which does some USR2 signal magic to make Unicorn gracefully reload itself and the application without dropping existing connections.

Plenty of references to it out on the web, so hopefully shouldn't be too hard to do:

  • http://pastie.org/1129610 (based on GitHub example; incidentally, this also has an example of how to do per-worker PID files that can be monitored by Monit)
  • http://gist.github.com/559710 (Vlad example)

Comments

  1. Greg Hurrell 2010-09-11T11:16:53Z

    Summary changed:

    • From: Add "restart" task to script/deploy
    • To: script/deploy: rewrite "restart" task to use USR2 signal
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets