News for hackers. Stuff that matters.
Re:Optimizing Sidekiq by sandGorgon on Wednesday October 14, 2015 @11:56AM (#10387332)
How do you guys deploy Sidekiq. The big problem is when I deploy Sidekiq through Foreman, then I always end up with hung processes on restart. Somehow, the TERM signal does not work very well.

I have now started using supervisor for deploying Sidekiq, but I would have preferred a Foreman like tool (so that development is also nice and simple)

Re:Optimizing Sidekiq by JonnieCache on Wednesday October 14, 2015 @12:36PM (#10387623)
I've always just done `bundle exec sidekiqctl stop tmp/blah_worker.pid` at deploy-time, and then let the process monitoring system bring them back up. It works fine. I've never had a problem with orphans in production, but our apps dont rely on sidekiq for their core functionality.
Re:Optimizing Sidekiq by eropple on Wednesday October 14, 2015 @12:04PM (#10387397)
I just kick off the application with a bash script for both dev and prod and push it through supervisor. (Remember to set `stopasgroup` to true, though, or else you can easily orphan processes and you will be sad.)