This repo houses the general Hyperion documentation.
This application enables you to do two things:
- Make workflow decisions
- Execute workflow actions
Either of these can be run directly from the console:
./hyperiond run:decision
./hyperiond run:worker
Which will in turn execute a single decision or worker. In production, you'll want to run these as daemons which will continuously poll for work.
./hyperiond daemon decision
It's recommended to log the output, eg:
./hyperiond daemon decider -l /var/log/hyperion.log
./hyperiond daemon worker -l /var/log/hyperion.log
or break up the log files -
./hyperiond daemon decider -l /var/log/hyperion/decider-access.log -L /var/log/hyperion/decider-error.log
./hyperiond daemon worker -l /var/log/hyperion/worker-access.log -L /var/log/hyperion/worker-error.log
For details -
./hyperiond help daemon
This project requires PHP-SSH2, which can be installed with pecl
:
yum install libssh2-devel
# apt-get install libssh2-1-dev php-pear php5-dev
yes '' | pecl install -f ssh2
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
# echo "extension=ssh2.so" > /etc/php5/mods-available/ssh2.ini
# ln -s /etc/php5/mods-available/ssh2.ini /etc/php5/apache2/conf.d/20-ssh2.ini
# ln -s /etc/php5/mods-available/ssh2.ini /etc/php5/cli/conf.d/20-ssh2.ini
Hyperion has configuration and an install script for systems supporting Upstart. If your system has Upstart capability you can simply run:
./hyperiond install
This will create Upstart config files in /etc/init
, symlink a binary in /usr/bin/
to the current working path
and start the services. This will run a single decider and a single worker on the machine. You can modify your Upstart
scripts to run multiple workers if required.
- Google credentials aren't supported