You're probably looking for NodeMC CORE.
This component handles communication between different nodes, as well as keeping each node healthy and unburdened with load.
yarn
NODEMC_API="yourapiendpoint" NODEMC_SCHEDULER_TOKEN="apitoken" node index.js
... That's it! The scheduler will register itself with the server and delegate tasks on this machine.