* Zero-downtime restarts while updating the environment?
@ 2014-01-03 19:15 Jonathan del Strother
2014-01-03 20:42 ` Sam Saffron
2014-01-03 21:44 ` Eric Wong
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan del Strother @ 2014-01-03 19:15 UTC (permalink / raw)
To: mongrel-unicorn
Hi there,
I recently ran into a problem where I had to update bundler from 1.3
to 1.5 so that it recognised the "platforms:[ruby_21]" option in my
Gemfile. However, Unicorn continued to use Bundler 1.3 when I
re-exec'd it via USR2 (perhaps unsurprisingly), and so couldn't load
my new gemfile until I completely restarted it.
I ended up tweaking our balancers to funnel all our traffic to half
our backend machines, restarted unicorn on the other half, then
flipped the traffic to the first half and repeat. Is that the
standard way of doing it, or is there a better way?
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero-downtime restarts while updating the environment?
2014-01-03 19:15 Zero-downtime restarts while updating the environment? Jonathan del Strother
@ 2014-01-03 20:42 ` Sam Saffron
2014-01-03 21:44 ` Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Sam Saffron @ 2014-01-03 20:42 UTC (permalink / raw)
To: unicorn list
cycling in and out of the load balancer is standard, you can also do
this: http://samsaffron.com/archive/2013/11/13/live-restarts-of-a-supervised-unicorn-process
On Sat, Jan 4, 2014 at 6:15 AM, Jonathan del Strother
<maillist@steelskies.com> wrote:
> Hi there,
> I recently ran into a problem where I had to update bundler from 1.3
> to 1.5 so that it recognised the "platforms:[ruby_21]" option in my
> Gemfile. However, Unicorn continued to use Bundler 1.3 when I
> re-exec'd it via USR2 (perhaps unsurprisingly), and so couldn't load
> my new gemfile until I completely restarted it.
>
> I ended up tweaking our balancers to funnel all our traffic to half
> our backend machines, restarted unicorn on the other half, then
> flipped the traffic to the first half and repeat. Is that the
> standard way of doing it, or is there a better way?
> _______________________________________________
> Unicorn mailing list - mongrel-unicorn@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
> Do not quote signatures (like this one) or top post when replying
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero-downtime restarts while updating the environment?
2014-01-03 19:15 Zero-downtime restarts while updating the environment? Jonathan del Strother
2014-01-03 20:42 ` Sam Saffron
@ 2014-01-03 21:44 ` Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2014-01-03 21:44 UTC (permalink / raw)
To: unicorn list; +Cc: Jonathan del Strother
Jonathan del Strother <maillist@steelskies.com> wrote:
> Hi there,
> I recently ran into a problem where I had to update bundler from 1.3
> to 1.5 so that it recognised the "platforms:[ruby_21]" option in my
> Gemfile. However, Unicorn continued to use Bundler 1.3 when I
> re-exec'd it via USR2 (perhaps unsurprisingly), and so couldn't load
> my new gemfile until I completely restarted it.
You can poke around in the ENV hash with the before_exec hook to
remove/change any environment variables Bundler uses.
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-03 21:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 19:15 Zero-downtime restarts while updating the environment? Jonathan del Strother
2014-01-03 20:42 ` Sam Saffron
2014-01-03 21:44 ` Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).