-
Notifications
You must be signed in to change notification settings - Fork 7
Installation: Setup resque pool
acozine edited this page Jan 10, 2014
·
15 revisions
We recommend using the resque-pool gem:
cd /opt/$PROJECT_NAME
bundle exec resque-pool --daemon --environment production
To troubleshoot issues with resque-pool, check resque-pool.stderr.log and resque-pool.stdout.log, found in /opt/$PROJECT_NAME/log/.
To restart resque-pool, find the PID of the resque-pool-master:
ps aux | grep resq
You'll see output like this:
ubuntu 8062 79.0 6.2 325112 105276 ? Sl 15:08 0:13 resque-pool-master[hydradam]: managing [8074, 8078, 8081, 8084]
The PID is the second element of the output. Use it to restart or stop the resque-pool.
Restart:
kill -HUP 8062
Stop:
kill -QUIT 8062
If resque-pool failed to launch, check file resque-pool.stderr.log.
Alternatively, you can start and stop resque workers manually in screen.