Jonathan del Strother
2014-Jan-03 19:15 UTC
Zero-downtime restarts while updating the environment?
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