Service Orchestrators
Ork (miningos-wrk-ork) is a service orchestrator responsible for fetching, aggregating, and coordinating data from all worker services.
About Ork
Ork (miningos-wrk-ork) is a service orchestrator responsible for fetching, aggregating, and coordinating data from all worker services.
Install Ork
Use the same working directory for all the workers.
1. Clone the Repository
Inside your working directory, run the following command to clone the (miningos-wrk-ork) repository:
git clone https://github.com/tetherto/miningos-wrk-ork.gitAfter cloning the repository, move into its directory:
cd miningos-wrk-ork2. Install Dependencies
Inside the miningos-wrk-ork directory, run the following command to install dependencies using npm:
npm ci3. Generate Configuration Files
Next, run the following script to scan the config/ directory,
copy each .example file into an active configuration file by removing the .example suffix.
sh setup-config.sh4. Enable Debugging and Start the Worker
You can now start the worker by running the following command:
DEBUG="miningos:*" pm2 -s start worker.js --name 'ork-0' -- --wtype wrk-ork-proc-aggr --env development --cluster cluster-1Every worker service generates status file with the public RPC key for communication.
Copy the rpcPublicKey from status/wrk-ork-proc-aggr-cluster-1.json for later use.