Skip to content
Snippets Groups Projects
README.md 641 B
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
# Example 1

In this example, we have:
- one Manager that own a task Queue
- one Master that pushes tasks in that Queue
- Minions that get things done
Guilhem Saurel's avatar
Guilhem Saurel committed

## Test  locally

In one shell: `./manager.py`
In another: `./master.py`
And in many others: `./minion.py`

## Test on multiple computers

eg. if the manager is on senjosan:

```bash
docker build --build-args HOST=senjosan -t memmos.laas.fr:5000/gepetto/multiprocessing-examples:example-1 .
docker push memmos.laas.fr:5000/gepetto/multiprocessing-examples:example-1
```

And on other computers:
```bash
docker run --rm -d memmos.laas.fr:5000/gepetto/multiprocessing-examples:example-1
```