문제

I have multiple workers, each of them seperated based on WorkerClass Specified queues, concurrency etc. They are triggerin via cron jobs.

nohup bundle exec sidekiq -q worker1 -c 5 -e production
nohup bundle exec sidekiq -q worker2 -c 5 -e production
nohup bundle exec sidekiq -q worker3 -c 5 -e production
nohup bundle exec sidekiq -q worker4 -c 5 -e production
nohup bundle exec sidekiq -q worker5 -c 5 -e production

So, I need to start all of them on EC2 instance, and restart them after next deploy. Can I use capistrano to do this? or any better way?

Thanks.

도움이 되었습니까?

해결책

You should use something like God, upstart, or runit to keep your sidekiq processes up and running.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top