-
Notifications
You must be signed in to change notification settings - Fork 0
worker process manager application.
walf443/p5-dainamo
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
NAME
Dainamo - manage worker processes.
SYNOPSIS
use Dainamo;
my $dainamo = Dainamo->new(
max_workers => 10,
);
$dainamo->add_profile(
profile => Dainamo::Profile::Gearman->new(
name => 'Project1',
config => {
job_servers => '127.0.0.1:7003',
workers => [qw( Project1::Worker::Job1 Project1::Worker::Job2 )],
}
),
);
$dainamo->load_profiles('/path/to/project2/config.pl');
if ( $ENV{DEVELOPMENT} ) {
} else {
$dainamo->daemonize(1);
}
$dainamo->run;
in path/to/project2/config.pl
use strict;
use warnings;
use Dainamo::ProfileGroup;
my $group = Dainamo::ProfileGroup->new;
$group->add_profile(profile => Dainamo::Profile::Gearman->new(
name => 'Project2'
config => {
job_servers => '127.0.0.1:7003',
workers => [ qw(Project2::Worker::Job1 Project2::Worker::Job2 ],
}
);
DESCRIPTION
Dainamo is an apllication that manage worker process.
THIS SOFTWARE IS ALPHA QUALITIY. API MAY CHANGE IN FUTURE.
Api is in discussion at <irc://irc.freenode.org/#dainamo>
AUTHOR
Keiji Yoshimi <walf443 at gmail dot com>
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
About
worker process manager application.
Resources
Stars
Watchers
Forks
Packages 0
No packages published