Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python
tree: ef0f242d72

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
deployments
epuharness
.gitignore
README.md
fabfile.py
requirements.txt
setup.cfg
setup.py

README.md

EPU Harness

A tool to deploy EPU locally for development.

Refer to https://confluence.oceanobservatories.org/display/syseng/CIAD+CEI+SV+Lightweight+CEI+Launch

Usage

By default, epu-harness will start one Process Dispatcher and one eeagent, and create a configuration for each that had the eeagent announce itself to the PD.

If you would like a different deployment, you can create your own deployment configuration. The default configuration is as follows:

process-dispatchers:
  pd_0:
    logfile: /tmp/pd_0.log
    engines:
      default:
        deployable_type: eeagent
        slots: 4
        base_need: 1
nodes:
  nodeone:
    dt: eeagent
    process-dispatcher: pd_0
    eeagents:
      eeagent_nodeone:
        logfile: /tmp/eeagent_nodeone.log

If you want two nodes, for example, your configuration file would look like:

process-dispatchers:
  pd_0:
    logfile: /tmp/pd_0.log
    engines:
      default:
        deployable_type: eeagent
        slots: 4
        base_need: 1
nodes:
  nodeone:
    dt: eeagent
    process-dispatcher: pd_0
    eeagents:
      eeagent_nodeone:
        logfile: /tmp/eeagent_nodeone.log
  nodetwo:
    dt: eeagent
    process-dispatcher: pd_0
    eeagents:
      eeagent_nodetwo:
        logfile: /tmp/eeagent_nodetwo.log

To use the profile, save it to a yml file, and launch it like so:

$ epu-harness start twonodes.yml

When you're ready to stop the service, you can do so like so:

$ epu-harness stop

Installation

For deployment:

pip install -r requirements.txt

For development of epu-harness itself:

python setup.py develop
Something went wrong with that request. Please try again.