May 2017
Intermediate to advanced
436 pages
9h 44m
English
Scaling services inside a Swarm cluster is easy, isn't it? Just execute docker service scale <SERVICE_NAME>=<NUMBER_OF_INSTANCES> and, all of a sudden, the service is running multiple copies.
The previous statement is only partly true. The more precise wording would be that "scaling stateless services inside a Swarm cluster is easy".
The reason that scaling stateless services is easy lies in the fact that there is no state to think about. An instance is the same no matter how long it runs. There is no difference between a new instance and one that run for a week. Since the state does not change over time, we can create new copies at any given moment, and they will all be exactly the same.
However, ...
Read now
Unlock full access