Skip to content

Installation: Setup resque pool

randikathryn edited this page Feb 23, 2014 · 15 revisions

Notes

Resque-pool starts and manages a pool of resque workers that handle jobs like transcoding video files and retrieving metadata with Fits. This allows your users to move on to the next page or the next upload while their jobs are in process.

Steps

To set resque-pool as a service complete the following steps.

  1. Copy the pool_q script by entering the command
    Ubuntu: sudo cp /opt/hydradam/script/pool_q /etc/init.d/
    CentOS: sudo cp /opt/hydradam/script/pool_q /etc/rc.d/init.d/

  2. Set ownership on the script by entering the command
    Ubuntu: sudo chown root:root /etc/rc.d/init.d/pool_q
    CentOS: sudo chown root:root /etc/init.d/pool_q

  3. Set permissions on the script by entering the command
    Ubuntu: sudo chmod 0755 /etc/rc.d/init.d/pool_q
    CentOS: sudo chmod 0755 /etc/init.d/pool_q

  4. (CentOS Only) Add pool_q to chkconfig so it will start automatically on reboot by entering the command sudo chkconfig --add pool_q.

Verification Steps

  1. Start a pool of resque workers by entering the command sudo service pool_q start.

  2. Wait 30 seconds for the pool master to spawn workers, then check the pool by entering the command ps aux | grep [r]esque.

The output should look similar to 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  
...

Next Step

Proceed to Validate your Installation or return to the Overview page.

Clone this wiki locally