A Docker Swarm mode service provides a distributed application that may be scaled across a cluster of nodes. Swarm mode provides internal load balancing among the different services in the Swarm based on the DNS name of a service. Swarm mode also provides ingress load balancing among a service’s different tasks if the service is published on a host port. Additionally, service tasks may be scheduled on specific nodes using placement constraints.
Service Discovery
A Swarm has a DNS server embedded in it. Service discovery is based on the DNS name. Swarm manager assigns ...