Search⌘ K

Tasks and Swarm’s Scaling Model

Explore how Docker Swarm manages the desired state of services by creating and allocating tasks across nodes in a cluster. Understand Swarm's self-healing and scaling features that ensure containers match the specified service replicas, helping you maintain robust Docker environments for Rails applications.

We'll cover the following...

Swarm’s self-regulation

Services running on Swarm are self-regulating. We define the desired state for service in terms of the number of containers that should run for it, and Swarm acts to ensure that this state is achieved and maintained.

It is this self-regulation that is key to how scaling is implemented, as well as Swarm’s self-healing properties.

Swarm as orchestrator

Swarm is made up of different parts. We can consider one part to be the ...