Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokuhirom/gearman-starter.pl
bootstrap script for gearman worker
https://github.com/tokuhirom/gearman-starter.pl
Last synced: 18 days ago
JSON representation
bootstrap script for gearman worker
- Host: GitHub
- URL: https://github.com/tokuhirom/gearman-starter.pl
- Owner: tokuhirom
- License: other
- Created: 2010-07-05T09:53:49.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-07-10T10:18:14.000Z (over 10 years ago)
- Last Synced: 2024-10-11T20:59:33.934Z (about 1 month ago)
- Language: Perl
- Homepage:
- Size: 222 KB
- Stars: 13
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Gearman::Starter - Gearman workers launcher with register functions
# SYNOPSIS
use Gearman::Starter;
my $gearman_starter = Gearman::Starter->new(
server => ['127.0.0.1:7003'],
max_workers => 3,
max_requests_per_child => 10,
module => ['MyWorker::Job'],
scoreboard_dir => $scoreboard_dir, # optional
port => 9999, # optional
Reload => ['lib/MyWorker/Job.pm'], # optional
on_fail => sub { ... }, # optional
);
$gearman_starter->run;# DESCRIPTION
Gearman::Starter is Gearman worker launcher with register functions from specified modules.
This module is Objective backend of [gearman-starter.pl](http://search.cpan.org/perldoc?gearman-starter.pl).
# CONSTRUCTOR
`new` is constructor method.
The following options are available:
- `server`
Gearman server
- `max_workders`
- `max_requests_per_child`
- `module`Modules with job definitions.
The functions whose name start with `/^job_/` in the modules are dealt with Gearman functions
and registered to workers automatically.- `scoreboard_dir`
If you want to monitor status of workers, scoreboard is available.
- `port`
You can monitor status of workers through specified TCP port.
It is easily available by using Telnet or Netcat, etc.# LICENSE
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHORS
Tokuhiro Matsuno
Masahiro Nagano
Songmu