README.md 531 octets
Newer Older
Imran Tierce's avatar
Imran Tierce a validé
## Run the server

```sh
cargo run
# or cargo run -- --help
```

`--release` is good but not necessary.

## Run the slave

```sh
cargo run --release --bin slave
# or cargo run --release --bin slave -- --help
```

We add the `--release` to make the slave fast.

Imran Tierce's avatar
Imran Tierce a validé
## Build the docker images

Before building:

```sh
cargo vendor
```
itytophile's avatar
itytophile a validé

itytophile's avatar
itytophile a validé
## Monitoring

After creating the swarm:
itytophile's avatar
itytophile a validé

```sh
itytophile's avatar
itytophile a validé
docker stack deploy --compose-file docker-compose.yml stackhash
itytophile's avatar
itytophile a validé
python docker/monitor.py
```
itytophile's avatar
itytophile a validé

To delete the stack:

```sh
docker stack rm stackhash
```