February 2019
Intermediate to advanced
240 pages
5h 25m
English
Currently, we have a single container (or replica) of each service running on our swarm. However, with Swarm, we can scale up services to meet real or anticipated demand. Here we’re talking about horizontally scaling your app—running multiple containers for a service, each of which can handle a certain amount of load.
Ready to try this out? Let’s scale our web service up to run three containers; watch what happens in the visualizer as you run the following command:
| | $ docker service scale myapp_web=3 |
| | myapp_web scaled to 3 |
| | overall progress: 3 out of 3 tasks |
| | 1/3: running [==================================================>] |
| | 2/3: running [==================================================>] |
| | 3/3: running ... |
Read now
Unlock full access