SlideShare a Scribd company logo
DOCKER SWARM 1.12
By Tanmay Mehra
DOCKER RECAP…
• Docker is an open platform for developing, shipping, and
running applications.

• The lightweight nature of containers, which run without the
extra load of a hypervisor, means you can get more out of your
hardware.

• Docker daemon, docker client, docker Host and docker
registry.

• Docker images, containers, networks and volumes.
DOCKER SWARM 1.12
• Docker (starting from version 1.12) can run in two modes, classical
and swarm mode.

• A swarm is a cluster of Docker engines, or nodes, where you deploy
services.

• Docker Swarm provides native clustering capabilities to turn a group
of Docker engines into a single, virtual Docker Engine.

• The Docker Engine CLI and API include commands to manage swarm
nodes (e.g., add or remove nodes), and deploy and orchestrate
services across the swarm.
APPLICATION, SERVICES AND
NETWORKS
• In the context of Docker and Docker Swarm, an application is made up
of one to many services running on one to multiple of software defined
networks (SDN).

• Each service can be “attached” to one or many networks. The
communication between the services happens over a network.

• Lets see the logical and the physical architecture of the application
running on docker swarm nodes.
APPLICATION, SERVICES AND
NETWORKS
Logical View
APPLICATION, SERVICES AND
NETWORKS
Physical View
DOCKER SWARM COMPONENTS
• NODES : A node is an instance of Docker Engine participating in a
swarm.

• There are two types of nodes : Manager node and Worker Node.

• To deploy your application to a swarm, you submit a service definition
to a manager node. The manager node dispatches units of work called
tasks to worker nodes.

• Manager nodes also perform the orchestration and cluster management
functions required to maintain the desired state of the swarm.

• Worker nodes receive and execute tasks dispatched from manager
nodes.
DOCKER SWARM COMPONENTS
• SERVICE : A service is the definition of the tasks to execute on the
worker nodes. It is the central structure of the swarm system and
the primary root of user interaction with the swarm.

• In the replicated services model, the swarm manager distributes
a specific number of replica tasks among the nodes based upon
the scale you set in the desired state.

• For global services, the swarm runs one task for the service on
every available node in the cluster.

• TASK : A task carries a Docker container and the commands to
run inside the container. It is the atomic scheduling unit of swarm.
DOCKER SWARM 1.12 FEATURES
• LOAD BALANCING : The swarm manager uses ingress load
balancing to expose the services you want to make available
externally to the swarm.

• The swarm manager can automatically assign the service a
PublishedPort or you can configure a PublishedPort for the service.

• Swarm mode has an internal DNS component that automatically
assigns each service in the swarm a DNS entry.

• The swarm manager uses internal load balancing to distribute
requests among services within the cluster based upon the DNS
name of the service.
DOCKER SWARM 1.12 FEATURES
• HIGH SCALABILITY AND PERFORMANCE : Swarm is production
ready and tested to scale up to one thousand (1,000) nodes and fifty
thousand (50,000) containers with no performance degradation in
spinning up incremental containers onto the node cluster.

• FAILOVER AND HIGH AVAILABILITY : Ensure a highly available
Swarm Manager. Create multiple Swarm masters and specify
policies on leader election in case the primary master experiences a
failure.

• FLEXIBLE CONTAINER SCHEDULING : The built-in scheduler has
several filters such as node tags, affinity and strategies like spread,
binpack and many more.
SWARM DEMO
• Create a master node

• Create two worker nodes

• Join nodes with master node

• Create a docker service 

• Inspect a service

• Access a service on published port

• scale a docker service

• Upgrade service image (Rolling updates)

• Drain a node

• stop a node

• remove nodes
SWARM DEMO
• Running multiple service in Docker swarm

• Create a docker network

• Create service foo

• Create service bar

• Access service bar inside foo (Load Balancing)
Thank you for listening !!

More Related Content

What's hot

Container Orchestration with Docker Swarm
Container Orchestration with Docker SwarmContainer Orchestration with Docker Swarm
Container Orchestration with Docker Swarm
Frederik Mogensen
 
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Docker, Inc.
 
Docker swarm workshop
Docker swarm workshopDocker swarm workshop
Docker swarm workshop
Luis Borbon
 
Rhel cluster basics 1
Rhel cluster basics   1Rhel cluster basics   1
Rhel cluster basics 1
Manoj Singh
 
CloudStack technical overview
CloudStack technical overviewCloudStack technical overview
Docker Swarm for Beginner
Docker Swarm for BeginnerDocker Swarm for Beginner
Docker Swarm for Beginner
Shahzad Masud
 
Using CloudStack With Clustered LVM
Using CloudStack With Clustered LVMUsing CloudStack With Clustered LVM
Using CloudStack With Clustered LVM
Marcus L Sorensen
 
Docker Swarm Introduction
Docker Swarm IntroductionDocker Swarm Introduction
Docker Swarm Introduction
rajdeep
 
What's New in Docker 1.12?
What's New in Docker 1.12?What's New in Docker 1.12?
What's New in Docker 1.12?
Ajeet Singh Raina
 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea LuzzardiWhat's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
Mike Goelzer
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
howie YU
 
Optimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using dockerOptimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using docker
Ananth Padmanabhan
 
Rhel cluster basics 2
Rhel cluster basics   2Rhel cluster basics   2
Rhel cluster basics 2
Manoj Singh
 
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS cloudsCloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
CloudStack - Open Source Cloud Computing Project
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
gavin_lee
 
Docker swarm introduction
Docker swarm introductionDocker swarm introduction
Docker swarm introduction
Evan Lin
 
CloudStack + SDN
CloudStack + SDNCloudStack + SDN
CloudStack + SDN
Chiradeep Vittal
 
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22Service 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
 
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)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
 

What's hot (20)

Container Orchestration with Docker Swarm
Container Orchestration with Docker SwarmContainer Orchestration with Docker Swarm
Container Orchestration with Docker Swarm
 
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
 
Docker swarm workshop
Docker swarm workshopDocker swarm workshop
Docker swarm workshop
 
Rhel cluster basics 1
Rhel cluster basics   1Rhel cluster basics   1
Rhel cluster basics 1
 
CloudStack technical overview
CloudStack technical overviewCloudStack technical overview
CloudStack technical overview
 
Docker Swarm for Beginner
Docker Swarm for BeginnerDocker Swarm for Beginner
Docker Swarm for Beginner
 
Using CloudStack With Clustered LVM
Using CloudStack With Clustered LVMUsing CloudStack With Clustered LVM
Using CloudStack With Clustered LVM
 
Docker Swarm Introduction
Docker Swarm IntroductionDocker Swarm Introduction
Docker Swarm Introduction
 
What's New in Docker 1.12?
What's New in Docker 1.12?What's New in Docker 1.12?
What's New in Docker 1.12?
 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
CloudStack Networking
 
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea LuzzardiWhat's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
 
Optimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using dockerOptimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using docker
 
Rhel cluster basics 2
Rhel cluster basics   2Rhel cluster basics   2
Rhel cluster basics 2
 
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS cloudsCloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
CloudStack Hyderabad Meetup: Using CloudStack to build IaaS clouds
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
 
Docker swarm introduction
Docker swarm introductionDocker swarm introduction
Docker swarm introduction
 
CloudStack + SDN
CloudStack + SDNCloudStack + SDN
CloudStack + SDN
 
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
 
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
 

Viewers also liked

Docker
DockerDocker
Resume - Shrawani Mandapati (HR Generalist - 4yrs
Resume - Shrawani Mandapati (HR Generalist - 4yrsResume - Shrawani Mandapati (HR Generalist - 4yrs
Resume - Shrawani Mandapati (HR Generalist - 4yrs
Shrawani Mandapati
 
Detection of suspected nodes in MANET
Detection of suspected nodes in MANETDetection of suspected nodes in MANET
Detection of suspected nodes in MANET
IDES Editor
 
Resume for HR Profile
Resume for HR ProfileResume for HR Profile
Resume for HR Profile
Dharmendra Gupta
 
Certificate in Performance Management & Performance Appraisal
Certificate in Performance Management & Performance AppraisalCertificate in Performance Management & Performance Appraisal
Certificate in Performance Management & Performance Appraisal
IIR Middle East
 
SUNIL MANOHAR SINGH_CV
SUNIL MANOHAR SINGH_CVSUNIL MANOHAR SINGH_CV
SUNIL MANOHAR SINGH_CV
SUNIL MANOHAR SINGH
 
Radiance 2017 Credit and Accounts Receivable Innovation Conference
Radiance 2017 Credit and Accounts Receivable Innovation ConferenceRadiance 2017 Credit and Accounts Receivable Innovation Conference
Radiance 2017 Credit and Accounts Receivable Innovation Conference
Elaine M. Nowak
 
Mohamed Hamad Satti, his life and work
Mohamed Hamad Satti, his life and workMohamed Hamad Satti, his life and work
Mohamed Hamad Satti, his life and work
Ahmad Al Safi
 
Financial Supply chain Management.
Financial Supply chain Management.Financial Supply chain Management.
Financial Supply chain Management.
Rajeev Kumar
 
Grounding of Multi Cable Transits for on-shore use
Grounding of Multi Cable Transits for on-shore useGrounding of Multi Cable Transits for on-shore use
Grounding of Multi Cable Transits for on-shore use
Mathieu Melenhorst
 
EMR - Salary & Trend Report - 2014
EMR - Salary & Trend Report - 2014 EMR - Salary & Trend Report - 2014
EMR - Salary & Trend Report - 2014
jonathanfisher77
 
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB ClustersDevelopment to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
Severalnines
 
Building a business case for SAP FSCM
Building a business case for SAP FSCM Building a business case for SAP FSCM
Building a business case for SAP FSCM
HighRadius
 
Pankaj Jagtap_Resume_Project Manager_TechMahindra
Pankaj Jagtap_Resume_Project Manager_TechMahindraPankaj Jagtap_Resume_Project Manager_TechMahindra
Pankaj Jagtap_Resume_Project Manager_TechMahindra
Pankaj Jagtap
 
2016 Rotary Serving Humanity Lunch Presentation
2016 Rotary Serving Humanity Lunch Presentation2016 Rotary Serving Humanity Lunch Presentation
2016 Rotary Serving Humanity Lunch Presentation
Rotary District 6970
 
Anant Chanchlani (12-09-2016)
Anant Chanchlani (12-09-2016)Anant Chanchlani (12-09-2016)
Anant Chanchlani (12-09-2016)
Veda - The Quiz Society of MSI(T)
 
gt_winter_16_web
gt_winter_16_webgt_winter_16_web
gt_winter_16_web
Mark Getman
 
1 OA ICH Background
1 OA ICH Background1 OA ICH Background
1 OA ICH Background
Obaid Ali / Roohi B. Obaid
 
Mc donald
Mc donaldMc donald
Mc donald
Dhruvi bhatt
 
Introduction to docker swarm
Introduction to docker swarmIntroduction to docker swarm
Introduction to docker swarm
Walid Ashraf
 

Viewers also liked (20)

Docker
DockerDocker
Docker
 
Resume - Shrawani Mandapati (HR Generalist - 4yrs
Resume - Shrawani Mandapati (HR Generalist - 4yrsResume - Shrawani Mandapati (HR Generalist - 4yrs
Resume - Shrawani Mandapati (HR Generalist - 4yrs
 
Detection of suspected nodes in MANET
Detection of suspected nodes in MANETDetection of suspected nodes in MANET
Detection of suspected nodes in MANET
 
Resume for HR Profile
Resume for HR ProfileResume for HR Profile
Resume for HR Profile
 
Certificate in Performance Management & Performance Appraisal
Certificate in Performance Management & Performance AppraisalCertificate in Performance Management & Performance Appraisal
Certificate in Performance Management & Performance Appraisal
 
SUNIL MANOHAR SINGH_CV
SUNIL MANOHAR SINGH_CVSUNIL MANOHAR SINGH_CV
SUNIL MANOHAR SINGH_CV
 
Radiance 2017 Credit and Accounts Receivable Innovation Conference
Radiance 2017 Credit and Accounts Receivable Innovation ConferenceRadiance 2017 Credit and Accounts Receivable Innovation Conference
Radiance 2017 Credit and Accounts Receivable Innovation Conference
 
Mohamed Hamad Satti, his life and work
Mohamed Hamad Satti, his life and workMohamed Hamad Satti, his life and work
Mohamed Hamad Satti, his life and work
 
Financial Supply chain Management.
Financial Supply chain Management.Financial Supply chain Management.
Financial Supply chain Management.
 
Grounding of Multi Cable Transits for on-shore use
Grounding of Multi Cable Transits for on-shore useGrounding of Multi Cable Transits for on-shore use
Grounding of Multi Cable Transits for on-shore use
 
EMR - Salary & Trend Report - 2014
EMR - Salary & Trend Report - 2014 EMR - Salary & Trend Report - 2014
EMR - Salary & Trend Report - 2014
 
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB ClustersDevelopment to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
 
Building a business case for SAP FSCM
Building a business case for SAP FSCM Building a business case for SAP FSCM
Building a business case for SAP FSCM
 
Pankaj Jagtap_Resume_Project Manager_TechMahindra
Pankaj Jagtap_Resume_Project Manager_TechMahindraPankaj Jagtap_Resume_Project Manager_TechMahindra
Pankaj Jagtap_Resume_Project Manager_TechMahindra
 
2016 Rotary Serving Humanity Lunch Presentation
2016 Rotary Serving Humanity Lunch Presentation2016 Rotary Serving Humanity Lunch Presentation
2016 Rotary Serving Humanity Lunch Presentation
 
Anant Chanchlani (12-09-2016)
Anant Chanchlani (12-09-2016)Anant Chanchlani (12-09-2016)
Anant Chanchlani (12-09-2016)
 
gt_winter_16_web
gt_winter_16_webgt_winter_16_web
gt_winter_16_web
 
1 OA ICH Background
1 OA ICH Background1 OA ICH Background
1 OA ICH Background
 
Mc donald
Mc donaldMc donald
Mc donald
 
Introduction to docker swarm
Introduction to docker swarmIntroduction to docker swarm
Introduction to docker swarm
 

Similar to Dokcer swarm

Orchestrating Linux Containers while tolerating failures
Orchestrating Linux Containers while tolerating failuresOrchestrating Linux Containers while tolerating failures
Orchestrating Linux Containers while tolerating failures
Docker, Inc.
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
Gourav Varma
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
Gourav Varma
 
swarmmode-dojo
swarmmode-dojoswarmmode-dojo
swarmmode-dojo
Clarence Bakirtzidis
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
Kalkey
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
Gourav Varma
 
Introduction To Docker, Docker Compose, Docker Swarm
Introduction To Docker, Docker Compose, Docker SwarmIntroduction To Docker, Docker Compose, Docker Swarm
Introduction To Docker, Docker Compose, Docker Swarm
An Nguyen
 
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
Yahoo Developer Network
 
Docker Overview
Docker OverviewDocker Overview
Docker Overview
Alexander Moon
 
Rami Sayar - Node microservices with Docker
Rami Sayar - Node microservices with DockerRami Sayar - Node microservices with Docker
Rami Sayar - Node microservices with Docker
Web à Québec
 
Docker
DockerDocker
Containers and Docker
Containers and DockerContainers and Docker
Containers and Docker
Damian T. Gordon
 
Docker Container Security
Docker Container SecurityDocker Container Security
Docker Container Security
Suraj Khetani
 
DockerCon EU 2015 Barcelona
DockerCon EU 2015 BarcelonaDockerCon EU 2015 Barcelona
DockerCon EU 2015 Barcelona
Roman Dembitsky
 
Docker Swarm and Traefik 2.0
Docker Swarm and Traefik 2.0Docker Swarm and Traefik 2.0
Docker Swarm and Traefik 2.0
Jakub Hajek
 
Docker HK Meetup - 201707
Docker HK Meetup - 201707Docker HK Meetup - 201707
Docker HK Meetup - 201707
Clarence Ho
 
Docker
DockerDocker
Docker
Charlie Cai
 
Abc of docker
Abc of dockerAbc of docker
Abc of docker
shohan_slideshare
 
Docker slides
Docker slidesDocker slides
Docker slides
Jyotsna Raghuraman
 

Similar to Dokcer swarm (20)

Orchestrating Linux Containers while tolerating failures
Orchestrating Linux Containers while tolerating failuresOrchestrating Linux Containers while tolerating failures
Orchestrating Linux Containers while tolerating failures
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
swarmmode-dojo
swarmmode-dojoswarmmode-dojo
swarmmode-dojo
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
 
Introduction To Docker, Docker Compose, Docker Swarm
Introduction To Docker, Docker Compose, Docker SwarmIntroduction To Docker, Docker Compose, Docker Swarm
Introduction To Docker, Docker Compose, Docker Swarm
 
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
Containerized Services on Apache Hadoop YARN: Past, Present, and Future, Shan...
 
Docker Overview
Docker OverviewDocker Overview
Docker Overview
 
Rami Sayar - Node microservices with Docker
Rami Sayar - Node microservices with DockerRami Sayar - Node microservices with Docker
Rami Sayar - Node microservices with Docker
 
Docker
DockerDocker
Docker
 
Containers and Docker
Containers and DockerContainers and Docker
Containers and Docker
 
Docker Container Security
Docker Container SecurityDocker Container Security
Docker Container Security
 
DockerCon EU 2015 Barcelona
DockerCon EU 2015 BarcelonaDockerCon EU 2015 Barcelona
DockerCon EU 2015 Barcelona
 
Docker Swarm and Traefik 2.0
Docker Swarm and Traefik 2.0Docker Swarm and Traefik 2.0
Docker Swarm and Traefik 2.0
 
Docker HK Meetup - 201707
Docker HK Meetup - 201707Docker HK Meetup - 201707
Docker HK Meetup - 201707
 
Docker
DockerDocker
Docker
 
Abc of docker
Abc of dockerAbc of docker
Abc of docker
 
Docker slides
Docker slidesDocker slides
Docker slides
 

Recently uploaded

BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
shivani5543
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 

Recently uploaded (20)

BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 

Dokcer swarm

  • 1. DOCKER SWARM 1.12 By Tanmay Mehra
  • 2. DOCKER RECAP… • Docker is an open platform for developing, shipping, and running applications. • The lightweight nature of containers, which run without the extra load of a hypervisor, means you can get more out of your hardware. • Docker daemon, docker client, docker Host and docker registry. • Docker images, containers, networks and volumes.
  • 3. DOCKER SWARM 1.12 • Docker (starting from version 1.12) can run in two modes, classical and swarm mode. • A swarm is a cluster of Docker engines, or nodes, where you deploy services. • Docker Swarm provides native clustering capabilities to turn a group of Docker engines into a single, virtual Docker Engine. • The Docker Engine CLI and API include commands to manage swarm nodes (e.g., add or remove nodes), and deploy and orchestrate services across the swarm.
  • 4. APPLICATION, SERVICES AND NETWORKS • In the context of Docker and Docker Swarm, an application is made up of one to many services running on one to multiple of software defined networks (SDN). • Each service can be “attached” to one or many networks. The communication between the services happens over a network. • Lets see the logical and the physical architecture of the application running on docker swarm nodes.
  • 7. DOCKER SWARM COMPONENTS • NODES : A node is an instance of Docker Engine participating in a swarm. • There are two types of nodes : Manager node and Worker Node. • To deploy your application to a swarm, you submit a service definition to a manager node. The manager node dispatches units of work called tasks to worker nodes. • Manager nodes also perform the orchestration and cluster management functions required to maintain the desired state of the swarm. • Worker nodes receive and execute tasks dispatched from manager nodes.
  • 8. DOCKER SWARM COMPONENTS • SERVICE : A service is the definition of the tasks to execute on the worker nodes. It is the central structure of the swarm system and the primary root of user interaction with the swarm. • In the replicated services model, the swarm manager distributes a specific number of replica tasks among the nodes based upon the scale you set in the desired state. • For global services, the swarm runs one task for the service on every available node in the cluster. • TASK : A task carries a Docker container and the commands to run inside the container. It is the atomic scheduling unit of swarm.
  • 9. DOCKER SWARM 1.12 FEATURES • LOAD BALANCING : The swarm manager uses ingress load balancing to expose the services you want to make available externally to the swarm. • The swarm manager can automatically assign the service a PublishedPort or you can configure a PublishedPort for the service. • Swarm mode has an internal DNS component that automatically assigns each service in the swarm a DNS entry. • The swarm manager uses internal load balancing to distribute requests among services within the cluster based upon the DNS name of the service.
  • 10. DOCKER SWARM 1.12 FEATURES • HIGH SCALABILITY AND PERFORMANCE : Swarm is production ready and tested to scale up to one thousand (1,000) nodes and fifty thousand (50,000) containers with no performance degradation in spinning up incremental containers onto the node cluster. • FAILOVER AND HIGH AVAILABILITY : Ensure a highly available Swarm Manager. Create multiple Swarm masters and specify policies on leader election in case the primary master experiences a failure. • FLEXIBLE CONTAINER SCHEDULING : The built-in scheduler has several filters such as node tags, affinity and strategies like spread, binpack and many more.
  • 11. SWARM DEMO • Create a master node • Create two worker nodes • Join nodes with master node • Create a docker service • Inspect a service • Access a service on published port • scale a docker service • Upgrade service image (Rolling updates) • Drain a node • stop a node • remove nodes
  • 12. SWARM DEMO • Running multiple service in Docker swarm • Create a docker network • Create service foo • Create service bar • Access service bar inside foo (Load Balancing)
  • 13. Thank you for listening !!