Closed sduchesneau closed 4 months ago
Every being standard "execution, it's easy to use bash
script to control "node" software:
reader-node-binary: bash
reader-node-arguments:
- -c
- ...
There is a also reader-node-bootstrap-data-url
that accepts bash://<absolute-path-to-script>
so just bootstrapping from bash
is also possible.
Remove the heavy logic (in this repo and injected from firehose-*** repos) for snapshots, node operation, etc. bash scripts should be provided by the user (copied from examples with sane values).
start
: starts the node and outputs the logs to STDOUT and STDERR as usualstop
: stops the nodebackup
: runs the backup, it can callcurl localhost:8080/v1/stop|start
if neededrestore
: runs the backup, it can callcurl localhost:8080/v1/stop|start
if neededheartbeat
: this script is run in a loop, sleeps 1sec between runs. (optional, new feature request: *onfailure
: this script is run when the node suddenly stops. It can decide to call 'restore' or 'shutdown' or just 'start' or whatever logic)the node manager API listens on 8080:
strong suggestion: We get rid of the "node" type of service, only
reader
remains