This is the third article in a series I’m writing about using beanstalkd messaging queue with Tomatocart. You could find the previous two articles and read them.
It’s not effective to login into your server to check the job, tube and worker through typing beanstalkd command. It would be better to monitor them in a web UI directly. Beanstalkd console is an admin console for beanstalkd queue server, written in PHP.
Install it in your web server
- Run following command to download beanstalkd console into your web server:
git clone https://github.com/ptrofimov/beanstalk_console.git
- Go to the beanstalk_console fold to run following command:
- Set a virtual host to link a subdomain to path/to/beanstalkd_console/public.
<VirtualHost *:80> ServerName queueadmin.me ServerAlias www.queueadmin.me ServerAdmin webmaster@localhost DocumentRoot /var/www/beanstalk_console/public ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined <Directory /var/www/beanstalk_console/public> Options Indexes FollowSymLinks MultiViews AllowOverride All Order deny,allow Allow from all Require all granted </Directory> </VirtualHost>
Access the subdomain within your browser
Now, you could access your configured subdomain to view the console dashboard.
Click the Add Server button to add the beanstalkd server.
Just enter the ip address your host server and the port for beanstalkd. If the beanstealkd server is installed in the same host server with your web server, please just enter localhost into the host field.
Click the name field to check the tubes.
Click the tube name to mange the jobs just for this specific tube.
Click Add job button to add new job into specific tube.
Click toolbox dropdown to set filter columns.
There are other useful tools to manage beanstalkd such as beanstalkd view. You could try it by yourself.