© Deepak Vohra 2017

Deepak Vohra, Docker Management Design Patterns, https://doi.org/10.1007/978-1-4842-2973-6_12

12. Load Balancing

Deepak Vohra

(1)White Rock, British Columbia, Canada

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 ...

Get Docker Management Design Patterns: Swarm Mode on Amazon Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.