Skip to content
Snippets Groups Projects
README.md 651 B
Newer Older
# Example 2
In this example, we have example 1 plus:
- Adding one Queue so that the boss can get the results back
- Transmitting numpy objects over the network

## 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-arg 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 -it memmos.laas.fr:5000/gepetto/multiprocessing-examples:example-1
```