[Part 3] – Use beanstalkd messaging queue with tomatocart

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.

Snip20160223_4

Install it in your web server

  1. Run following command to download beanstalkd console into your web server:
    git clone https://github.com/ptrofimov/beanstalk_console.git
  2. Go to the beanstalk_console fold to run following command:
    composer install
  3. 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.

Snip20160223_6

Click the Add Server button to add the beanstalkd server.

Snip20160223_7

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.

Snip20160223_10

Snip20160223_11

Click the tube name to mange the jobs just for this specific tube.

Snip20160223_12

Click Add job button to add new job into specific tube.

Snip20160223_13

Click toolbox dropdown to set filter columns.

Snip20160223_17

Final word

There are other useful tools to manage beanstalkd such as beanstalkd view. You could try it by yourself.

Looking for quality TomatoCart hosting? Check out Arvixe Web Hosting

 

Tags: , | Posted under TomatoCart | RSS 2.0

Author Spotlight

Jack Yin

TomatoCart Developer & Co Founder - Arvixe Web Hosting / TomatoCart Community Liaison

Leave a Reply

Your email address will not be published. Required fields are marked *