My stack set-up consists of the following:
- www.main.com - Main Server (Main Application code & supervisord)
- www.queue-server.com - Beanstalkd installed here (No code here only beanstalkd)
I'm using Laravel 4.2.
I have setup Supervisord on www.main.com and added the following queue listener:
php artisan queue:work--queue=test --env=test
My app/config/queue.php
file settings are as below:
'beanstalkd' => array(
'driver' => 'beanstalkd',
'host' => 'www.queue-server.com',
'queue' => 'test',
'ttr' => 60,
),
From my understanding, it should push & process jobs on www.queue-server.com
server but it shows no cpu spikes there, but www.main.com
server shows high cpu usage.
So my questions are:
- Is my setup correct? Or I have to change something?
- I want to process my job on
www.queue-server.com
server. How can I achieve that?