necromant2005/gearman-stats
Laravel package for fetching and parsing Gearman server statistics. Provides an easy API to query job queues, workers, and status metrics from gearmand, helping you monitor workload and troubleshoot background job processing in your app.
Version 1.0.0 Created by Rostislav Mykhajliw
TweeGearmanStat is a simple adapter for monitrong your Gearman queue for php
"require": {
"necromant2005/gearman-stats": "@dev",
}
$ php composer.phar update
$adapter = new \TweeGearmanStat\Queue\Gearman(array(
'h1' => array('host' => '10.0.0.1', 'port' => 4730, 'timeout' => 1),
'h2' => array('host' => '10.0.0.2', 'port' => 4730, 'timeout' => 1),
));
$status = $adapter->status();
var_dump($status);
With default timeout 5 sec
$adapter = new \TweeGearmanStat\Queue\Gearman(array(
'h1' => array('host' => '10.0.0.1', 'port' => 4730),
'h2' => array('host' => '10.0.0.2', 'port' => 4730),
));
$status = $adapter->status();
var_dump($status);
How can I help you explore Laravel packages today?