NAME
Argon::Worker - Argon worker node providing capacity to an Argon::Manager
VERSION
version 0.18
SYNOPSIS
use Argon::Worker;
use AnyEvent;
my $cv = AnyEvent->condvar;
my $worker = Argon::Worker->new(
keyfile => 'path/to/secret',
capacity => 4,
mgr_host => 'some.host-addr.com',
mgr_port => 8000,
);
$cv->recv;
DESCRIPTION
Workers do the actual work of executing the tasks assigned to them by the Argon::Manager.
For most use cases, this class need not be access directly; instead, "ar-worker" in bin provides a command-line interface to control the manager process.
ATTRIBUTES
keyfile
Path to the file containing the encryption pass phrase. Inherited from Argon::Encryption.
capacity
The number of tasks which this worker can handle concurrently.
mgr_hsot
The host name or IP of the manager process.
mgr_port
The port number on which the manager is listening.
METHODS
start
Starts the worker.
connect
Connects to the manager service. Called by "start".
AUTHOR
Jeff Ober <sysread@fastmail.fm>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Jeff Ober.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.