Submit Search
Upload
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
•
0 likes
•
420 views
M
Michelle Antebi
Follow
Mountain View Meetup 2/24
Read less
Read more
Technology
Report
Share
Report
Share
1 of 22
Download now
Download to read offline
Recommended
Docker Swarm Is Dead: Long Live Docker Swarm
Docker Swarm Is Dead: Long Live Docker Swarm
Elton Stoneman
Docker Swarm Meetup (15min lightning)
Docker Swarm Meetup (15min lightning)
Mike Goelzer
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
Docker swarm workshop
Docker swarm workshop
Luis Borbon
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Mike Goelzer
Introduction to docker swarm
Introduction to docker swarm
Walid Ashraf
Going Production with Docker and Swarm
Going Production with Docker and Swarm
C4Media
Docker swarm
Docker swarm
Alberto Guimarães Viana
Recommended
Docker Swarm Is Dead: Long Live Docker Swarm
Docker Swarm Is Dead: Long Live Docker Swarm
Elton Stoneman
Docker Swarm Meetup (15min lightning)
Docker Swarm Meetup (15min lightning)
Mike Goelzer
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
Docker swarm workshop
Docker swarm workshop
Luis Borbon
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Mike Goelzer
Introduction to docker swarm
Introduction to docker swarm
Walid Ashraf
Going Production with Docker and Swarm
Going Production with Docker and Swarm
C4Media
Docker swarm
Docker swarm
Alberto Guimarães Viana
The age of orchestration: from Docker basics to cluster management
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
Docker Swarm Introduction
Docker Swarm Introduction
rajdeep
Deep Dive into Docker Swarm Mode
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
Docker swarm reloaded
Docker swarm reloaded
Govinda Fichtner
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Ajeet Singh Raina
Swarm - A Docker Clustering System
Swarm - A Docker Clustering System
snrism
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker, Inc.
Nebulaworks Docker Overview 09-22-2015
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
Docker Swarm & Machine
Docker Swarm & Machine
Eueung Mulyana
Docker swarm introduction
Docker swarm introduction
Evan Lin
Load Balancing Apps in Docker Swarm with NGINX
Load Balancing Apps in Docker Swarm with NGINX
NGINX, Inc.
Docker 1.12 and swarm mode
Docker 1.12 and swarm mode
Wesley Charles Blake
Monitoring Dell Infrastructure using Docker & Microservices
Monitoring Dell Infrastructure using Docker & Microservices
Ajeet Singh Raina
Demystifying puppet
Demystifying puppet
Ajeet Singh Raina
Container Orchestration with Docker Swarm
Container Orchestration with Docker Swarm
Frederik Mogensen
Docker Swarm 0.2.0
Docker Swarm 0.2.0
Docker, Inc.
What's New in Docker 1.12?
What's New in Docker 1.12?
Ajeet Singh Raina
Docker Machine & Docker Swarm
Docker Machine & Docker Swarm
Guillermo Lucero
Docker Swarm for Beginner
Docker Swarm for Beginner
Shahzad Masud
Kubernetes Powered Docker for Mac Platform
Kubernetes Powered Docker for Mac Platform
Ajeet Singh Raina
Business selectors
Business selectors
benwaine
Reproducible Science with Python
Reproducible Science with Python
Andreas Schreiber
More Related Content
What's hot
The age of orchestration: from Docker basics to cluster management
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
Docker Swarm Introduction
Docker Swarm Introduction
rajdeep
Deep Dive into Docker Swarm Mode
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
Docker swarm reloaded
Docker swarm reloaded
Govinda Fichtner
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Ajeet Singh Raina
Swarm - A Docker Clustering System
Swarm - A Docker Clustering System
snrism
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker, Inc.
Nebulaworks Docker Overview 09-22-2015
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
Docker Swarm & Machine
Docker Swarm & Machine
Eueung Mulyana
Docker swarm introduction
Docker swarm introduction
Evan Lin
Load Balancing Apps in Docker Swarm with NGINX
Load Balancing Apps in Docker Swarm with NGINX
NGINX, Inc.
Docker 1.12 and swarm mode
Docker 1.12 and swarm mode
Wesley Charles Blake
Monitoring Dell Infrastructure using Docker & Microservices
Monitoring Dell Infrastructure using Docker & Microservices
Ajeet Singh Raina
Demystifying puppet
Demystifying puppet
Ajeet Singh Raina
Container Orchestration with Docker Swarm
Container Orchestration with Docker Swarm
Frederik Mogensen
Docker Swarm 0.2.0
Docker Swarm 0.2.0
Docker, Inc.
What's New in Docker 1.12?
What's New in Docker 1.12?
Ajeet Singh Raina
Docker Machine & Docker Swarm
Docker Machine & Docker Swarm
Guillermo Lucero
Docker Swarm for Beginner
Docker Swarm for Beginner
Shahzad Masud
Kubernetes Powered Docker for Mac Platform
Kubernetes Powered Docker for Mac Platform
Ajeet Singh Raina
What's hot
(20)
The age of orchestration: from Docker basics to cluster management
The age of orchestration: from Docker basics to cluster management
Docker Swarm Introduction
Docker Swarm Introduction
Deep Dive into Docker Swarm Mode
Deep Dive into Docker Swarm Mode
Docker swarm reloaded
Docker swarm reloaded
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Swarm - A Docker Clustering System
Swarm - A Docker Clustering System
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker Online Meetup #28: Production-Ready Docker Swarm
Nebulaworks Docker Overview 09-22-2015
Nebulaworks Docker Overview 09-22-2015
Docker Swarm & Machine
Docker Swarm & Machine
Docker swarm introduction
Docker swarm introduction
Load Balancing Apps in Docker Swarm with NGINX
Load Balancing Apps in Docker Swarm with NGINX
Docker 1.12 and swarm mode
Docker 1.12 and swarm mode
Monitoring Dell Infrastructure using Docker & Microservices
Monitoring Dell Infrastructure using Docker & Microservices
Demystifying puppet
Demystifying puppet
Container Orchestration with Docker Swarm
Container Orchestration with Docker Swarm
Docker Swarm 0.2.0
Docker Swarm 0.2.0
What's New in Docker 1.12?
What's New in Docker 1.12?
Docker Machine & Docker Swarm
Docker Machine & Docker Swarm
Docker Swarm for Beginner
Docker Swarm for Beginner
Kubernetes Powered Docker for Mac Platform
Kubernetes Powered Docker for Mac Platform
Viewers also liked
Business selectors
Business selectors
benwaine
Reproducible Science with Python
Reproducible Science with Python
Andreas Schreiber
Item analysis
Item analysis
Bimel Kottarathil
Jake Fox Pd. 5
Jake Fox Pd. 5
LigScience2
Apache Ambari: Managing Hadoop and YARN
Apache Ambari: Managing Hadoop and YARN
Hortonworks
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Gaurav Srivastav
Choosing the right data storage in the Cloud.
Choosing the right data storage in the Cloud.
Amazon Web Services
Developing highly scalable applications with Symfony and RabbitMQ
Developing highly scalable applications with Symfony and RabbitMQ
Alexey Petrov
Kelompok 2
Kelompok 2
University of Andalas
Bridging the Gap: Connecting AWS and Kafka
Bridging the Gap: Connecting AWS and Kafka
Pengfei (Jason) Li
Advanced Microservices - Greach 2015
Advanced Microservices - Greach 2015
Steve Pember
NSM (Network Security Monitoring) - Tecland Chapeco
NSM (Network Security Monitoring) - Tecland Chapeco
Rodrigo Montoro
Linux Malware Analysis
Linux Malware Analysis
Cysinfo Cyber Security Community
ITV& Bashton
ITV& Bashton
Amazon Web Services
IM World presentation from Chris Swan: Application centric – how the cloud ha...
IM World presentation from Chris Swan: Application centric – how the cloud ha...
Cohesive Networks
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
Cohesive Networks
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Nagios
Reactive Cloud Security | AWS Public Sector Summit 2016
Reactive Cloud Security | AWS Public Sector Summit 2016
Amazon Web Services
Platform - Technical architecture
Platform - Technical architecture
David Rundle
Automated Infrastructure Security: Monitoring using FOSS
Automated Infrastructure Security: Monitoring using FOSS
Sonatype
Viewers also liked
(20)
Business selectors
Business selectors
Reproducible Science with Python
Reproducible Science with Python
Item analysis
Item analysis
Jake Fox Pd. 5
Jake Fox Pd. 5
Apache Ambari: Managing Hadoop and YARN
Apache Ambari: Managing Hadoop and YARN
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Choosing the right data storage in the Cloud.
Choosing the right data storage in the Cloud.
Developing highly scalable applications with Symfony and RabbitMQ
Developing highly scalable applications with Symfony and RabbitMQ
Kelompok 2
Kelompok 2
Bridging the Gap: Connecting AWS and Kafka
Bridging the Gap: Connecting AWS and Kafka
Advanced Microservices - Greach 2015
Advanced Microservices - Greach 2015
NSM (Network Security Monitoring) - Tecland Chapeco
NSM (Network Security Monitoring) - Tecland Chapeco
Linux Malware Analysis
Linux Malware Analysis
ITV& Bashton
ITV& Bashton
IM World presentation from Chris Swan: Application centric – how the cloud ha...
IM World presentation from Chris Swan: Application centric – how the cloud ha...
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Reactive Cloud Security | AWS Public Sector Summit 2016
Reactive Cloud Security | AWS Public Sector Summit 2016
Platform - Technical architecture
Platform - Technical architecture
Automated Infrastructure Security: Monitoring using FOSS
Automated Infrastructure Security: Monitoring using FOSS
Similar to Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt
aravym456
DockerCon EU 2015 Barcelona
DockerCon EU 2015 Barcelona
Roman Dembitsky
Orchestrating Docker with OpenStack
Orchestrating Docker with OpenStack
Erica Windisch
DockerCon SF 2015: Orchestration for Sysadmins
DockerCon SF 2015: Orchestration for Sysadmins
Docker, Inc.
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
PROIDEA
Docker
Docker
SangtongPeesing
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Thomas Barlow
What’s new in Swarm 1.1
What’s new in Swarm 1.1
k z
Docker Started
Docker Started
Victor S. Recio
廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班
Paul Chao
Building Bizweb Microservices with Docker
Building Bizweb Microservices with Docker
Khôi Nguyễn Minh
DockerCon EU 2018 Workshop: Container Networking for Swarm and Kubernetes in ...
DockerCon EU 2018 Workshop: Container Networking for Swarm and Kubernetes in ...
Guillaume Morini
Docker 進階實務班
Docker 進階實務班
Philip Zheng
Introducing Docker Swarm - the orchestration tool by Docker
Introducing Docker Swarm - the orchestration tool by Docker
Ramit Surana
ContainerDays NYC 2016: "Containers in Azure: Understanding the Microsoft Con...
ContainerDays NYC 2016: "Containers in Azure: Understanding the Microsoft Con...
DynamicInfraDays
Automation and Collaboration Across Multiple Swarms Using Docker Cloud - Marc...
Automation and Collaboration Across Multiple Swarms Using Docker Cloud - Marc...
Docker, Inc.
Docker 1.11 Presentation
Docker 1.11 Presentation
Sreenivas Makam
Paolucci voxxed-days-berlin-2016-age-of-orchestration
Paolucci voxxed-days-berlin-2016-age-of-orchestration
Grzegorz Duda
Kubernetes with docker
Kubernetes with docker
Docker, Inc.
Docker Container Security
Docker Container Security
Suraj Khetani
Similar to Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
(20)
14309525_docker_docker_docker_docker_introduction.ppt
14309525_docker_docker_docker_docker_introduction.ppt
DockerCon EU 2015 Barcelona
DockerCon EU 2015 Barcelona
Orchestrating Docker with OpenStack
Orchestrating Docker with OpenStack
DockerCon SF 2015: Orchestration for Sysadmins
DockerCon SF 2015: Orchestration for Sysadmins
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
Docker
Docker
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
What’s new in Swarm 1.1
What’s new in Swarm 1.1
Docker Started
Docker Started
廣宣學堂: 容器進階實務 - Docker進深研究班
廣宣學堂: 容器進階實務 - Docker進深研究班
Building Bizweb Microservices with Docker
Building Bizweb Microservices with Docker
DockerCon EU 2018 Workshop: Container Networking for Swarm and Kubernetes in ...
DockerCon EU 2018 Workshop: Container Networking for Swarm and Kubernetes in ...
Docker 進階實務班
Docker 進階實務班
Introducing Docker Swarm - the orchestration tool by Docker
Introducing Docker Swarm - the orchestration tool by Docker
ContainerDays NYC 2016: "Containers in Azure: Understanding the Microsoft Con...
ContainerDays NYC 2016: "Containers in Azure: Understanding the Microsoft Con...
Automation and Collaboration Across Multiple Swarms Using Docker Cloud - Marc...
Automation and Collaboration Across Multiple Swarms Using Docker Cloud - Marc...
Docker 1.11 Presentation
Docker 1.11 Presentation
Paolucci voxxed-days-berlin-2016-age-of-orchestration
Paolucci voxxed-days-berlin-2016-age-of-orchestration
Kubernetes with docker
Kubernetes with docker
Docker Container Security
Docker Container Security
Recently uploaded
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Zilliz
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
SeasiaInfotech2
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Zilliz
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Wonjun Hwang
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Recently uploaded
(20)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
1.
Swarm: Docker Native Clustering Mike Goelzer mgoelzer@docker.com GH: @mgoelzer Freenode/Twitter: @mikegoelzer
2.
Swarm: Simplicity, Flexibility, Ease of Setup • What is Swarm? • Set up a Swarm cluster •
Sample microservice application on Swarm with demo
3.
Swarm turns multiple Docker hosts into a single, virtual Docker host.
4.
docker daemon (node-1) Container Container >_ Docker CLI docker Docker Compose Kitematic Jenkins plugin
5.
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
6.
Swarm Features • Scheduling • Rescheduling on failure •
HA (multiple masters) • Labels, affinities and constraints to control scheduling decisions • DNS-based service discovery
7.
Swarm Cluster
8.
Three steps to create a cluster 1. Create a KV (Consul, etcd, zk) 2. Run Swarm Manager container 3.
Restart your Docker daemons with cluster arguments
9.
Step 1: Create a KV KV is for node discovery and libnetworkIP allocation (Consul, etcd, or zk) docker run --restart=unless-stopped -d -p 8500:8500 --name
consul -h consul progrium/consul -server -bootstrap -ui-dir /ui Refs: https://www.consul.io/docs/agent/options.html Web UI on: http://192.168.33.11:8500/ui/ Single-node Consul cluster Hostname Container name Map Consul port to host Daemonize container process Restart policy
10.
Step 2: Start Swarm manager docker run -d -p 3375:2375 swarm manage --discovery-opt="kv.path=docker/nodes" consul://192.168.33.10:8500/ Refs: https://docs.docker.com/swarm https://docs.docker.com/swarm/install-manual/
11.
Step 3: 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.10:8500 --cluster-advertise=eth1:2375 Refs: https://docs.docker.com/swarm https://docs.docker.com/swarm/install-manual/
12.
Example Repo: Microservice App on Swarm https://github.com/mgoelzer/swarm-demo-voting-app (then follow HOWTO.txt) Demonstrates a microservice app on Swarm including: • Vagrantfile
+ AWS Cloud Formation template to deploy the cluster • Load balanced web front end • DNS-based service discovery
13.
Interlock (nginx or ha_proxy) web01 redis01 web02 redis02 web03 redis03 web04 redis04 web05 redis05 pg results-app
14.
Clustered Voting App Repo: https://github.com/mgoelzer/swarm-demo-voting-app
15.
Clustered Voting App Repo: https://github.com/mgoelzer/swarm-demo-voting-app
16.
Interlock (nginx or ha_proxy) web01 redis01 web02 redis02 web03 redis03 web04 redis04 web05 redis05 pg results-app
17.
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.6 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
18.
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.6 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 192.168.33.11 192.168.33.12 .20
.21 .22 .23 .24 .200 .201 .251 Consul Manager Host Container 10.0.0.4 Container IPs 192.168.33.11 Node IP
19.
for (int i
= min; i <= max; i++) { String hostname = String.format(“redis%02d.mynet”,i); try { InetAddress inetAddress = InetAddress.getByName(hostname); String addr = inetAddress.getHostAddress(); queues.add(new RedisQueue(hostname, addr)); } catch (UnknownHostException e) { // No such host } } return queues; “redis01.mynet” ”redis02.mynet” etc. e.g., “10.0.0.23” Worker discovers Redis’s at runtime by DNS queues redis01.mynet 10.0.0.23 redis02.mynet 10.0.0.24 redis03.mynet 10.0.0.25
20.
Demo To follow along at home: 1. Clone https://github.com/mgoelzer/swarm-demo-voting-app 2. Follow instructions in HOWTO.txt
file (in root of repo). 3. Screencasts of the demo: • Step 1: Vagrant Up (https://www.youtube.com/watch?v=gKiEveAjgU8) • Step 2: Create Swarm Cluster (https://www.youtube.com/watch?v=IskSZC5wv7A) • Step 3: Build demo app images (https://www.youtube.com/watch?v=ZRFtNQB-VY8) • Step 4: Start demo app containers (https://www.youtube.com/watch?v=jlrpWrsvB2Q) • Step 5: Use the demo app (https://www.youtube.com/watch?v=_Pc07ThTbzs)
21.
Jérôme’s Example: Coin Miner Slides: http://view.dckr.info/ Repo: https://github.com/jpetazzo/orchestration-workshop Demonstrates: • Chaos-monkey proof cluster • How to do batch workloads on Swarm •
ELK stack for logging and metrics • Other load balancing patterns beyond Interlock (another Swarm example app)
22.
Mike Goelzer | mgoelzer@docker.com | GH: @mgoelzer
| @mikegoelzer
Download now