Manage a workerpool
A workerpool manager is an essential actor in the iExec network. It will be in charge of proposing available computing resources (workers) to task requesters.
The iexec-core software will take care of handling tasks comming from blockchain events and will distribute it to alive workers.
Prerequisites
Workers are deployed with docker containers. Follow instructions on the docker website for installation.
Docker compose file
Since all the services used by iExec run in docker, we will use docker-compose to start the scheduler and its related service. You can follow the instructions on the the docker compose website to install it.
In the docker compose file, you will find the following components:
Database service
A database is required for running the scheduler.
IPFS service
An IPFS node is required for running the scheduler.
Scheduler service
The main component is the scheduler service. In the docker compose file, it is defined as follow:
Like the database, the different variables used here are defined in the file .env and should be modified.
Start a scheduler
To start a scheduler, it is pretty straightforward since the scheduler can be started like any docker compose service, so it can be started using:
Please note that you need to make sure the scheduler has finished its start before starting any worker that will connect to the pool.
Stop a scheduler
In a similar fashion, the scheduler can be stopped with the following command:
Please note that once the scheduler is turned off, the workers will not work anymore.
Last updated