worker process manager application.
Perl Perl6
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
doc
lib
scripts
t
xt
.gitignore
.gitmodules
.shipit
Changes
MANIFEST.SKIP
Makefile.PL
README
config.pl.example

README

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.