bkpr - Manage worker pools
Version 0.01
$ bkpr --pool-id MyPool start Starting pool of MyApp workers: beekeeper-MyPool. $ bkpr --pool-id MyPool stop Stopping pool of MyApp workers: beekeeper-MyPool. $ bkpr --help Usage: bkpr [options] {start|stop|restart|reload|check} --foreground Run in foreground (do not daemonize) --pool-id str Worker pool name (mandatory) --user str Run as specified user --group str Run as specified group --config-dir str Path to directory containing config files --debug Turn on workers debug flag --help Shows this message
This command line tool is used to manage worker pools: it start, stop and monitor pools of persistent Beekeeper::Worker processes which receive RPC requests from message bus.
Beekeeper::Worker
When started it daemonize itself (unless --foreground option is passed) and fork all worker processes, then monitor those forked processes and immediately respawn defunct ones.
--foreground
Beekeeper applications use config files pool.config.json and bus.config.json to define how clients, workers and brokers connect to each other. These files are searched for in ENV BEEKEEPER_CONFIG_DIR, ~/.config/beekeeperand then /etc/beekeeper.
pool.config.json
bus.config.json
BEEKEEPER_CONFIG_DIR
~/.config/beekeeper
/etc/beekeeper
Beekeeper::WorkerPool, Beekeeper::Config.
José Micó, jose.mico@gmail.com
jose.mico@gmail.com
Copyright 2015 José Micó.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language itself.
This software is distributed in the hope that it will be useful, but it is provided “as is” and without any express or implied warranties. For details, see the full text of the license in the file LICENSE.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'José'. Assuming UTF-8
To install Beekeeper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Beekeeper
CPAN shell
perl -MCPAN -e shell install Beekeeper
For more information on module installation, please visit the detailed CPAN module installation guide.