Orbs network node heart beat
Health-check is a set of checks performed against various vchains. Each check sends a transaction at a given period of time.
Metrics are read from nodes. If the node is healthy, we should see the transactions in graphana dashboard.
Folder /src
contains files with checks. Create a new file with relevant call.
Important! It's your responsibility to invoke the function periodically. You can do it either by setInterval
or using any other library for cron jobs.
Edit index.js
file to add another fork process. Your check will run as a separate process independently from others, meaning, if other checks throw exception, your process will keep running.
- Open a terminal
ssh -o StrictHostKeyChecking=no ubuntu@13.57.221.146
[assuming you have a valid certificate to enter]cd /opt/health-check/
git pull
- Kill previous process
screen -S healthcheck -X quit
- Start a new detached process
screen -dmS healthcheck npm start
MIT.