Main usage

main usage.png
Figure 1. Main Usage

To start Onyx runtime you need to run 3 core subsystems on each host by calling (with this order):

  1. start-env

  2. start-peer-group

  3. start-peers

To shutdown onyx you need to call shutdown counterpart methods in reverted order:

  1. shutdown-peers

  2. shutdown-peer-group

  3. shutdown-env

You can start onyx using plain api methods or use with-test-env macro. Macro is used mostly in tests and it closes Onyx automatically.

When whole core is running then you can submit job from any of hosts. Rest of hosts will pick up job via Zookeeper.

  1. submit-job

You can kill job by calling.

  • kill-job(cfg, job-id)

results matching ""

    No results matching ""