Execution Orchestrator for MLsploit
The primary configuration settings of the execution module are stored
.env file, which you'll need to modify
according to your needs.
The first thing you should update is the
which is necessary for accessing the data API for MLsploit.
RUN WITH DOCKER
docker-compose to orchestrate the setup and execution of the service.
You only need to setup
docker on your system and then run the following command:
$ bash docker-start-master.sh
This starts the execution service in MASTER mode. The MASTER mode of the execution service runs the scheduling, networking, monitoring and execution of the jobs. The WORKER mode, which only handles the execution of the jobs, can be run in parallel on another system using the following command:
$ bash docker-start-worker.sh
For the WORKER mode, you will need to update the host environment variables in the
to point to the MASTER node.
Install the dependencies
$ pip install -r requirements.txt
Set up the environment
$ export MLSPLOIT_BROKER_URL='amqp://admin:password@localhost:5672/mlsploit' $ export MLSPLOIT_BACKEND_URL='redis://localhost:6379' $ export MLSPLOIT_API_ADMIN_TOKEN=<token here>
$ celery worker -A mlsploit -B \ -l info \ -Ofair \ -c 5
-B flag should be enabled only on one node worker since it queues the pending jobs.