Lightweight application created for running jobs on demand with a RESTful API interface and a scalable backend. Job queues are based on Zeromq.
Перейти к файлу
Alessandro Pilotti 6249f977d3 Updates newjob.sh example 2013-07-15 19:58:36 +03:00
conf Adds job results email notification 2013-07-15 19:53:35 +03:00
jobrunner Adds job results email notification 2013-07-15 19:53:35 +03:00
jobs Adds job results email notification 2013-07-15 19:53:35 +03:00
scripts Adds init.d scripts 2013-07-14 03:16:28 +03:00
.gitignore Added *.conf files to ignore list 2013-07-14 01:54:29 +03:00
README.rst Update README.rst 2013-07-14 04:23:32 +03:00
newjob.sh Updates newjob.sh example 2013-07-15 19:58:36 +03:00
openstack-common.conf Added Openstack cfg and logging 2013-07-14 01:36:35 +03:00
setup.cfg Adds job results email notification 2013-07-15 19:53:35 +03:00
setup.py Added setup script and configuration 2013-07-14 03:12:48 +03:00

README.rst

Cloudbase Job-Runner
====================

Lightweight application created for running jobs on demand with a RESTful API interface and a scalable backend. Job queues are based on Zeromq.

Setup on RHEL 6.4 or CentOS 6.4
-------------------------------

Dependencies::

 wget -O /etc/yum.repos.d/home:fengshuo:zeromq.repo http://download.opensuse.org/repositories/home:/fengshuo:/zeromq/CentOS_CentOS-6/home:fengshuo:zeromq.repo
 yum -y install zeromq python-zmq
 yum install -y python-flask python-netaddr python-six python-iso8601 python-eventlet
 yum install -y python-d2to1

Setup::

 python setup.py install

 cp scripts/* /etc/init.d/
 useradd -M jobrunner
 mkdir /var/log/jobrunner
 chown jobrunner.jobrunner /var/log/jobrunner/ 
 mkdir /var/run/jobrunner
 chown jobrunner.jobrunner /var/run/jobrunner/
 mkdir /etc/jobrunner
 cp conf/jobrunner.conf.sample /etc/jobrunner/jobrunner.conf

Start the services based on your configuration. For example:

Frontend / web node::

 service cloudbase-job-queue start
 service cloudbase-job-publisher start


Backend worker node::

 service cloudbase-job-worker start


On RHEL, Fedora, CentOS, SL, you can set the service to start automatically::

 chkconfig cloudbase-job-queue on
 chkconfig cloudbase-job-publisher on
 chkconfig cloudbase-job-worker on

Note: the jobs will run with the "jobrunner" account, verify permissions accordingly.