Main usage
Figure 1. Main Usage
To start Onyx runtime you need to run 3 core subsystems on each host by calling (with this order):
-
start-env
-
start-peer-group
-
start-peers
To shutdown onyx you need to call shutdown counterpart methods in reverted order:
-
shutdown-peers
-
shutdown-peer-group
-
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.
-
submit-job
You can kill job by calling.
-
kill-job(cfg, job-id)