-
Notifications
You must be signed in to change notification settings - Fork 7
Installation: Setup resque pool
acozine edited this page Jan 11, 2014
·
15 revisions
To set resque-pool as a service:
- Copy the pool_q script
Ubuntu:cp /opt/hydradam/script/pool_q /etc/init.d/
CentOS:cp /opt/hydradam/script/pool_q /etc/rc.d/init.d/
- Set ownership on the script
Ubuntu:sudo chown root:root /etc/rc.d/init.d/pool_q
CentOS:sudo chown root:root /etc/init.d/pool_q
- Set permissions on the script
Ubuntu:sudo chmod 0755 /etc/rc.d/init.d/pool_q
CentOS:sudo chmod 0755 /etc/init.d/pool_q
- (CentOS Only) Add pool_q to chkconfig so it will start automatically on reboot
sudo chkconfig --add pool_q
- Start a pool of resque workers:
sudo service pool_q start
- Wait 30 seconds for the pool master to spawn workers, then check the pool:
ps aux | grep [r]esque
You should see output something like this:
root 1428 ... 0:12 resque-pool-master[hydradam]: managing [1472, 1479, ...]
root 1472 ... 0:04 resque-1.25.1: Waiting for video
root 1479 ... 0:19 resque-1.25.1: Waiting for audio,audit,batch_update,characterize,event,ingest,templates,unzip,video
...