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

zero down time on unicorn restart #41

Merged
merged 2 commits into from
Jan 19, 2013
Merged

Conversation

lidaobing
Copy link
Contributor

  • user can customize the sleep time after USR2 signal
  • add set -x for verbose information on deploy

user can customize the unicorn restart sleep time
@sosedoff
Copy link
Owner

Tested? All good?

@lidaobing
Copy link
Contributor Author

tested on my deploy process, no problem

@DavidAllison
Copy link

@sosedoff Hi Dan - any chance we could get this merged in, and perhaps some of the other issues related to it reviewed? I am happy to help analyze and debug (it seems that currently there is a conflict with the way the unicorn restart task works within capistrano-unicorn and the way most users are writing their unicorn.rb file's before and after_fork blocks).

sosedoff added a commit that referenced this pull request Jan 19, 2013
zero down time on unicorn restart
@sosedoff sosedoff merged commit c2862dc into sosedoff:master Jan 19, 2013
@sfsekaran
Copy link
Contributor

Any idea why?

@astropanic
Copy link
Contributor

because

set -x

sends output to STDERR and you see the "err" indicator in Capistrano in red.

This is not a error in itself (the task works properly) but will for sure bring confusion to people.
Marking something red with errors, while working correctly brings a lot of confusion.
I would suggest use STDERR for what it was designed for.
Sending everything to STDERR for debugging purpose is bad practice.
You can affect the destination for set -x, but only from Bash version >= 4.1 via the BASH_XTRACEFD, but please don't do it...

@sfsekaran
Copy link
Contributor

I see. Yeah, I wouldn't want everything going through STDERR either. Please send over a pull request removing that. Unless anyone else has a good reason not to, I'm going to merge it straightaway.

On Monday, April 29, 2013 at 11:00 AM, Wojciech Pietrzak wrote:

because
set -x
sends output to STDERR and you see the "err" indicator in Capistrano in red.
This is not a error in itself (the task works properly) but will for sure bring confusion to people.
Marking something red with errors, while working correctly brings a lot of confusion.
I would suggest use STDERR for what it was designed for.
Sending everything to STDERR for debugging purpose is bad practice.
You can affect the destination for set -x, but only from Bash version >= 4.1 via the BASH_XTRACEFD, but please don't do it...


Reply to this email directly or view it on GitHub (#41 (comment)).

@astropanic
Copy link
Contributor

Here you go #54

@sfsekaran
Copy link
Contributor

@astropanic

@nextofsearch
Copy link

Does this gem support zero-downtime deployment yet?
It seems like it is not working.

@sfsekaran
Copy link
Contributor

@nextofsearch My knowledge of zero-downtime deployment options:

@nextofsearch
Copy link

@sfsekaran thanks a lot!!

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.

None yet

6 participants