Docker Swarm
Docker swarm allows the running of a docker container across a cluster of nodes and manages those containers as a single unit.
There are two types of nodes in Docker Swarm:
- Manager node: The manager node distributes tasks to worker nodes.
- Worker node: completes the tasks given by the manager node.
A task carries a Docker container and the commands to run inside the container. It is the atomic scheduling unit of the swarm. The swarm manager node constantly checks the state of the cluster and ensures it is always equal to the actual state specified by the user. For example, if a service specifies running 3 replicas of a container and 1 of the containers crashes, the swarm manager node will assign the new replica to one of the available nodes in the cluster.
How to Use Docker For Fault Tolerance with Docker Replicas?
Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. A cluster of docker engines is called a swarm. Docker Swarm is a cluster management and orchestration feature embedded in the Docker Engine.