SlideShare a Scribd company logo
Swarm:		Docker	Native	Clustering
Mike	Goelzer
mgoelzer@docker.com
GH:		@mgoelzer
Freenode/Twitter:		@mikegoelzer
Swarm:		Simplicity,	Flexibility,	Ease	of	Setup
• What	is	Swarm?
• How	do	you	set	it	up?
• Sample	microservice application	on	Swarm
Swarm	turns	multiple	Docker	hosts	into	a	
single,	virtual	Docker	host.
docker	daemon
(node-1)
Container
Container
>_
Docker CLI
docker
Docker	Compose
Kitematic
Jenkins	plugin
docker	daemon
(node-1)
Container
Container
>_
Docker CLI
Swarm	manager
docker
Docker	Compose
Kitematic
Jenkins	plugin
docker	daemon
(node-0)
Container
Container
docker	daemon
(node-2)
Container
Container
Swarm	Features
• Scheduling
• Rescheduling	on	failure
• HA	(multiple	masters)
• Labels,	affinities	and	constraints	to	control	scheduling	decisions
• DNS-based	service	discovery
Simple:		2	steps	to	create	a	cluster
1. Run	Swarm	Manager
2. Restart	your	Docker	daemons	with	
some	extra	arguments
Step	1:		Start	Swarm	manager
docker run -d -p 3375:2375 swarm manage consul://192.168.33.10:8500/
Refs:
https://docs.docker.com/swarm
https://docs.docker.com/swarm/install-manual/
Step	2:		Add	some	args to	your	daemons
Restart	Docker	daemons	with:
DOCKER_OPTS=
-H=tcp://0.0.0.0:2375
--cluster-store=consul://192.168.33.11:8500
--cluster-advertise=eth1:2375
Refs:
https://docs.docker.com/swarm
https://docs.docker.com/swarm/install-manual/
Voilà,	a	cluster
Example	Repo:		Microservice	App	on	Swarm
Upcoming	Swarm	Meetup:
http://www.meetup.com/Docker-Mountain-View/events/228284089/
https://github.com/mgoelzer/swarm-demo-voting-app
Demonstrates	a	microservice app	on	Swarm	including:
• Vagrantfile and	AWS	Cloud	Formation	template	to	deploy	the	cluster
• Load	balanced	web	front	end
• DNS-based	service	discovery
Interlock	(nginx	or	ha_proxy)
web01
redis01
web02
redis02
web03
redis03
web04
redis04
web05
redis05
pg results-app
10.0.0.4
10.0.0.3
36.36.36.36
10.0.0.100
10.0.0.5
10.0.0.5
10.0.0.7
10.0.0.6
10.0.0.9
10.0.0.8
10.0.0.11
10.0.0.10
10.0.0.101
https://github.com/mgoelzer/swarm-demo-voting-app
Clustered	Voting	App
https://github.com/mgoelzer/swarm-demo-voting-app
Jérôme’s	Example:		Coin	Miner
Slides:		http://view.dckr.info/
Repo:	https://github.com/jpetazzo/orchestration-workshop
Demonstrates:
• How	to	do	batch	workloads	on	Swarm
• ELK	stack	for	logging	 and	metrics
• Other	load	balancing	patterns	beyond	Interlock
Mike	Goelzer	|	mgoelzer@docker.com | GH:		@mgoelzer |	@mikegoelzer

More Related Content

PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
PPTX
Introduction to docker swarm
PDF
Going Production with Docker and Swarm
PDF
PDF
Docker Swarm & Machine
PDF
Nebulaworks Docker Overview 09-22-2015
PDF
Deep Dive into Docker Swarm Mode
PDF
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Introduction to docker swarm
Going Production with Docker and Swarm
Docker Swarm & Machine
Nebulaworks Docker Overview 09-22-2015
Deep Dive into Docker Swarm Mode
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)

What's hot (20)

PDF
The age of orchestration: from Docker basics to cluster management
PPTX
Docker Machine & Docker Swarm
PDF
Docker swarm introduction
PPTX
Docker Swarm Introduction
PDF
Docker Birthday #3 - Intro to Docker Slides
PPTX
Container Orchestration with Docker Swarm
PDF
Docker Swarm 0.2.0
PDF
Docker From Scratch
PPTX
Docker session IV: Docker Compose and Docker Swarm
PPTX
Comprehensive Monitoring for Docker
PDF
Docker 1.12 and swarm mode
PDF
Monitoring Dell Infrastructure using Docker & Microservices
PDF
Docker swarm reloaded
PDF
Docker Online Meetup #28: Production-Ready Docker Swarm
PDF
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
PPTX
Swarm - A Docker Clustering System
PDF
Introduction to docker and docker compose
PPTX
Docker Container As A Service - March 2016
PPTX
virtualization-vs-containerization-paas
PPTX
Load Balancing Apps in Docker Swarm with NGINX
The age of orchestration: from Docker basics to cluster management
Docker Machine & Docker Swarm
Docker swarm introduction
Docker Swarm Introduction
Docker Birthday #3 - Intro to Docker Slides
Container Orchestration with Docker Swarm
Docker Swarm 0.2.0
Docker From Scratch
Docker session IV: Docker Compose and Docker Swarm
Comprehensive Monitoring for Docker
Docker 1.12 and swarm mode
Monitoring Dell Infrastructure using Docker & Microservices
Docker swarm reloaded
Docker Online Meetup #28: Production-Ready Docker Swarm
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
Swarm - A Docker Clustering System
Introduction to docker and docker compose
Docker Container As A Service - March 2016
virtualization-vs-containerization-paas
Load Balancing Apps in Docker Swarm with NGINX
Ad

Viewers also liked (20)

PDF
SpringIO 2016 - Spring Cloud MicroServices, a journey inside a financial entity
PDF
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
PDF
Opensource approach to design and deployment of Microservices based VNF
PDF
Unit I.fundamental of Programmable DSP
PPT
Accelerated Leadership
PPT
Combining sentences with the words although and despite
PDF
PPTX
How to: node js & micro-services
PDF
Introduction to Volansys Technologies
PPTX
Ufrs varlıklar grubu standartları i̇nceleme raporu sunumu
PDF
Continuous deployment in LeanIX @ Bonn Agile
PPTX
Engineering Development & Design Capstone Project _ RICE-Optimized Knee Brace
PDF
Urban Legends: What You Code Makes You Who You Are - PJ Hagerty - Codemotion ...
PDF
Elks for analysing performance test results - Helsinki QA meetup
PPT
Java Garbage Collectors – Moving to Java7 Garbage First (G1) Collector
DOCX
Alan Johnson Resume
PPTX
Plumbing tips
PDF
Doç. Dr. Mehmet Ali GÜLÇELİK
PDF
AWS Chicago user group meetup on June 24, 2014
PDF
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
SpringIO 2016 - Spring Cloud MicroServices, a journey inside a financial entity
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
Opensource approach to design and deployment of Microservices based VNF
Unit I.fundamental of Programmable DSP
Accelerated Leadership
Combining sentences with the words although and despite
How to: node js & micro-services
Introduction to Volansys Technologies
Ufrs varlıklar grubu standartları i̇nceleme raporu sunumu
Continuous deployment in LeanIX @ Bonn Agile
Engineering Development & Design Capstone Project _ RICE-Optimized Knee Brace
Urban Legends: What You Code Makes You Who You Are - PJ Hagerty - Codemotion ...
Elks for analysing performance test results - Helsinki QA meetup
Java Garbage Collectors – Moving to Java7 Garbage First (G1) Collector
Alan Johnson Resume
Plumbing tips
Doç. Dr. Mehmet Ali GÜLÇELİK
AWS Chicago user group meetup on June 24, 2014
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Ad

Similar to Docker Swarm Meetup (15min lightning) (20)

PDF
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
PDF
Docker Swarm: Docker Native Clustering
PPTX
Introducing Docker Swarm - the orchestration tool by Docker
PDF
Dockertaipei 20150528-dockerswarm
PDF
Clustering Docker with Docker Swarm on openSUSE
PPTX
Introction to docker swarm
PDF
Docker swarm workshop
PDF
Docker swarm - An introduction to Docker native clustering
PPTX
Docker Swarm for Beginner
PPTX
Docker cluster with swarm, consul, registrator and consul-template
PDF
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
PDF
swarmmode-dojo
PDF
DockerCon SF 2015: Orchestration for Sysadmins
PDF
Swarm: Native Docker Clustering
PDF
Swarm mode
PDF
What’s new in Swarm 1.1
 
PDF
Dockercon Swarm Updated
PDF
Artem Zhurbila - docker clusters (solit 2015)
PDF
New Docker Features for Orchestration and Containers
PDF
Dokcer swarm
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
Docker Swarm: Docker Native Clustering
Introducing Docker Swarm - the orchestration tool by Docker
Dockertaipei 20150528-dockerswarm
Clustering Docker with Docker Swarm on openSUSE
Introction to docker swarm
Docker swarm workshop
Docker swarm - An introduction to Docker native clustering
Docker Swarm for Beginner
Docker cluster with swarm, consul, registrator and consul-template
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
swarmmode-dojo
DockerCon SF 2015: Orchestration for Sysadmins
Swarm: Native Docker Clustering
Swarm mode
What’s new in Swarm 1.1
 
Dockercon Swarm Updated
Artem Zhurbila - docker clusters (solit 2015)
New Docker Features for Orchestration and Containers
Dokcer swarm

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Cloud computing and distributed systems.
PDF
Advanced IT Governance
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Spectral efficient network and resource selection model in 5G networks
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
Cloud computing and distributed systems.
Advanced IT Governance
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced Soft Computing BINUS July 2025.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
Understanding_Digital_Forensics_Presentation.pptx
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Mobile App Security Testing_ A Comprehensive Guide.pdf

Docker Swarm Meetup (15min lightning)