All Projects → zhuravljov → yii2-queue-monitor

zhuravljov / yii2-queue-monitor

Licence: BSD-3-Clause license
Yii2 Queue Analytics Module

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
CSS
56736 projects

Projects that are alternatives of or similar to yii2-queue-monitor

yii2-queuemanager
Yii2 Queue Manager (Analytic & Monitor)
Stars: ✭ 18 (-81.82%)
Mutual labels:  yii2, queue
yii2-mailqueue
Yii2 mail queue component for yii2-swiftmailer.
Stars: ✭ 15 (-84.85%)
Mutual labels:  yii2, queue
yii2-logreader
Yii2 Log Reader
Stars: ✭ 31 (-68.69%)
Mutual labels:  yii2, module
Yii2 Queue
Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman
Stars: ✭ 977 (+886.87%)
Mutual labels:  yii2, queue
Yii2 Async
Provides translucent api & queues for moving large tasks out of request context with SQL, Redis or AMQP.
Stars: ✭ 64 (-35.35%)
Mutual labels:  yii2, queue
Yii2 Rest
Yii2 REST Client
Stars: ✭ 109 (+10.1%)
Mutual labels:  yii2, module
Rageframe2
一个基于Yii2高级框架的快速开发应用引擎
Stars: ✭ 1,553 (+1468.69%)
Mutual labels:  yii2, queue
yii2-deferred-tasks
Yii2 extension for handling deferred tasks (background cron jobs)
Stars: ✭ 11 (-88.89%)
Mutual labels:  yii2, queue
data-structure-project
自己实现集合框架系列整理总结
Stars: ✭ 29 (-70.71%)
Mutual labels:  queue
create-node-lib
Scaffold a batteries-included Node.js library project with docs, tests, semantic releases and more
Stars: ✭ 31 (-68.69%)
Mutual labels:  module
RedisTree
Redis Tree (Ploytree) Structure Module
Stars: ✭ 64 (-35.35%)
Mutual labels:  module
dispatcher
Dispatcher is an asynchronous task queue/job queue based on distributed message passing.
Stars: ✭ 60 (-39.39%)
Mutual labels:  queue
Instant-Face-Unlock
Xposed Module's InstantFaceUnlock Code
Stars: ✭ 23 (-76.77%)
Mutual labels:  module
yii2-admin-theme
基于Yii2+layui的后台框架模板,实现了完善的RBAC权限控制
Stars: ✭ 87 (-12.12%)
Mutual labels:  yii2
flask-redis-docker
A minimal template for dockerized flask app with redis task queue
Stars: ✭ 49 (-50.51%)
Mutual labels:  queue
yii2-lets-talk
With this extension you can open chat with someone in popular messengers using the link on your website.
Stars: ✭ 15 (-84.85%)
Mutual labels:  yii2
modjpeg-nginx
NGINX filter module for adding overlays and logos to JPEGs on-the-fly without degrading the quality of the image.
Stars: ✭ 18 (-81.82%)
Mutual labels:  module
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+368.69%)
Mutual labels:  queue
yii2-ftp
FTP Client for Yii2
Stars: ✭ 32 (-67.68%)
Mutual labels:  yii2
ZanAppUpdater
App updater
Stars: ✭ 55 (-44.44%)
Mutual labels:  module

Yii2 Queue Analytics Module

The module collects statistics about working of queues of an application, and provides web interface for research. Also the module allows to stop and replay any jobs manually.

Latest Stable Version Total Downloads Scrutinizer Code Quality

Installation

The preferred way to install the extension is through composer. Add to the require section of your composer.json file:

"zhuravljov/yii2-queue-monitor": "~0.1"

Usage

To configure the statistics collector, you need to add monitor behavior for each queue component. Update common config file:

return [
    'components' => [
        'queue' => [
            // ...
            'as jobMonitor' => \zhuravljov\yii\queue\monitor\JobMonitor::class,
            'as workerMonitor' => \zhuravljov\yii\queue\monitor\WorkerMonitor::class,
        ],
    ],
];

There are storage options that you can configure by common config file:

return [
    'container' => [
        'singletons' => [
            \zhuravljov\yii\queue\monitor\Env::class => [
                'cache' => 'cache',
                'db' => 'db',
                'pushTableName'   => '{{%queue_push}}',
                'execTableName'   => '{{%queue_exec}}',
                'workerTableName' => '{{%queue_worker}}',
            ],
        ],
    ],
];

If you want use migrations of the extension, configure migration command in console config:

'controllerMap' => [
    'migrate' => [
        'class' => \yii\console\controllers\MigrateController::class,
        'migrationNamespaces' => [
            //...
            'zhuravljov\yii\queue\monitor\migrations',
        ],
    ],
],

And apply migrations.

Web

Finally, modify your web config file to turn on web interface:

return [
    'bootstrap' => [
        'monitor',
    ],
    'modules' => [
        'monitor' => [
            'class' => \zhuravljov\yii\queue\monitor\Module::class,
        ],
    ],
];

It will be available by URL http://yourhost.com/monitor.

Console

There is console garbage collector:

'controllerMap' => [
    'monitor' => [
        'class' => \zhuravljov\yii\queue\monitor\console\GcController::class,
    ],
],

It can be executed as:

php yii monitor/clear-deprecated P1D

Where P1D is interval spec that specifies to delete all records one day older.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].