jamie at tramchase.com
Tue Aug 31 16:08:52 EDT 2010
On Aug 31, 2010, at 12:08 PM, Clifton King wrote:
> If the new master process
> fails at booting, you can tail the unicorn.stdout/err.log files to see
I should clarify... the above is exactly what I'm trying to avoid. i.e. how do you know if your new master failed to boot unless you are actively tailing the logs?
It is extremely infrequent that our unicorns fail to start, but when it does we sometimes don't notice for quite some time. Our unicorns also restart so quickly that it is not an issue to do the restarts synchronously during deployment and trade speed for peace of mind
I will probably just replace our basic `kill -USR2` with a small script that sends the signal and doesn't exit until the pidfile handover is complete. I'll be sure to share my results in case anyone else might find this useful.
http://jamiedubs.com | http://fffff.at
> On Tue, Aug 31, 2010 at 1:30 PM, Jamie Wilkinson <jamie at tramchase.com> wrote:
>> Has anyone tried to synchronously restart their unicorns, to ensure that things restart OK?
>> I imagine I could write a script that sent USR2 and then watched the log for a successful before exiting, but I dream there is something more MAGICAL
>> Yours in mythical web servers,
>> Unicorn mailing list - mongrel-unicorn at rubyforge.org
>> Do not quote signatures (like this one) or top post when replying
> Unicorn mailing list - mongrel-unicorn at rubyforge.org
> Do not quote signatures (like this one) or top post when replying
More information about the mongrel-unicorn