update docker-compose scale command

scale command is now legacy, use `--scale` option instead
This commit is contained in:
Bret Fisher
2018-05-04 00:18:58 -04:00
committed by GitHub
parent 527145ec81
commit 571de591ca

View File

@@ -100,13 +100,14 @@ We have available resources.
## Scaling workers on a single node
- Docker Compose supports scaling
- Let's scale `worker` and see what happens!
- Let's
`worker` and see what happens!
.exercise[
- Start one more `worker` container:
```bash
docker-compose scale worker=2
docker-compose up --scale worker=2
```
- Look at the performance graph (it should show a x2 improvement)
@@ -127,7 +128,7 @@ We have available resources.
- Start eight more `worker` containers:
```bash
docker-compose scale worker=10
docker-compose up --scale worker=10
```
- Look at the performance graph: does it show a x10 improvement?