SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Introduction
Most of cloud datacenters use virtualization which is implemented by
hypervisors such as Xen, KVM or Vsphere.
Container as a good alternative to hypervisor
Most of major IT vendors such as Google, Amazon, and Microsoft and
academic researchers have been interested in containerization of cloud
datacenters to overcome drawbacks of traditional hypervisor based
virtualization[02].
Google: 'EVERYTHING at Google runs in a container‘; Two billion containers a
week
 Docker Container, Linux Container(LxC), Warden Container, Open Vz Container.
Container
 “Containerization," an alternative to full machine virtualization in
which an application is encapsulated in a container with its own
operating environment.
 Containerization is an attractive solution that enables developers to
iterate faster.
 It also offers additional benefits that address the overhead associated
with virtual machines, allowing for higher utilization of resources in
the software-defined data center.
Virtual Machine Vs Container
Source: https://www.docker.com/
Virtualized Hardware
Operating System
Software
Application
Extra Overhead to Run Machine
Density is Limited (No of VM’s)
Virtual Machine Vs Container
Source: https://www.docker.com/
More Density (No of Container’s)
Booting time is fast
Don’t Emulate the whole hardware
Drawback is Same OS
Layers of containers
Kernel is same for all
applications
Bootfs Virtual File system to
Docker Images
Layer of Images Readable
Container Writable.
If one VM Image is require
1GB, then 100 VM’s require 100
GB
 If one Container is require
1GB, then 100 Containers
require 1GB(Sharing the Image)
Source: https://www.docker.com/
Docker Hub
Linux Containers
Linux distribution provide kernel mechanisms such as
oNamespaces: Allows groups of processes to be separated,
preventing them from seeing resources in other groups.
oControl groups: cgroups (abbreviated from control groups) is a
Linux kernel feature that limits, accounts, and isolates the resource
usage (CPU, memory, disk I/O, network, etc.) of a collection of
processes.
Documentation of cgroups-v2 first appeared in Linux kernel 4.5 released on
March 14, 2016
Linux Containers
6 Container Technologies
Docker
Docker
Docker Swarm
Linux Container(LxC)
Kubernetes
6.1 Docker
Docker is the world’s leading software container platform.
Docker is an open platform for developers and sysadmins to
build, ship, and run distributed applications, whether on
laptops, data center VMs, or the cloud.
6.1 Docker Vs VM
6.1 Docker Vs VM
7. Docker Swarm
Docker swarm mode is Docker’s solution for managing a cluster of Docker
engines running on multiple machines called SWARM, Where you can
deploy application services which are Docker Container.
Scheduler Swarm comes with a built-in scheduler. It currently provides
basic functionalities, such as scheduling containers based on constraints or
affinity (co-scheduling of containers), persistent storage and multiple
scheduling strategies like binpacking or random.
As per the document of Docker swarm they said, “We plan to add more
features to the built-in scheduler such as rebalancing (in case of host
failure) and global scheduling (schedule containers on every node)”
o Virtual Container ID
o Rebalancing
o Global scheduling
Source: https://github.com/docker/swarm/blob/master/ROADMAP.md Posted May 27,2016
7. Scheduling Using Docker Swarm
Swarm available filters
 Port
 Health
Constraint
Affinity
 Docker Swarm strategies
 Binpack
 Random
Spread
7.1.1 Swarm available Filters
Port
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
7.1.2 Swarm available Filters
Health
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Node is Not
Healthy
7.1.3 Swarm available Filters
Constraint
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Constraint==Ubuntu
Fedora
Specific OS
Kernel &
Hardware
Arch Linux Ubuntu
7.1.4 Swarm available Filters
Affinity
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Side By Nginx
Fedora
Attraction
Between
Container
Along With,
Not Along
With
Arch Linux Ubuntu
7.2.1 Docker Swarm strategies
Binpack
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Side By Nginx
Attraction
Between
Container
Along With,
Not Along
With
7.2.2 Docker Swarm strategies
Random
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Side By Nginx
Attraction
Between
Container
Along With,
Not Along
With
7.2.3 Docker Swarm strategies
Spread
Docker Engine
Docker Engine Docker Engine
Swarm Manager
Nginx: 6379
Nginx: 6379
Side By Nginx
Attraction
Between
Container
Along With,
Not Along
With

Weitere ähnliche Inhalte

Ähnlich wie Containerization

Docker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemDocker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemVan Phuc
 
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...Docker Understanding, What is Docker? Why Docker? How do I containerize somet...
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...Yogesh Wadile
 
Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deploymentjavaonfly
 
Techdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err MicrocosmosTechdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err MicrocosmosMike Martin
 
Using Docker container technology with F5 Networks products and services
Using Docker container technology with F5 Networks products and servicesUsing Docker container technology with F5 Networks products and services
Using Docker container technology with F5 Networks products and servicesF5 Networks
 
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12dotCloud
 
Application Deployment on Openstack
Application Deployment on OpenstackApplication Deployment on Openstack
Application Deployment on OpenstackDocker, Inc.
 
Docker Containers Deep Dive
Docker Containers Deep DiveDocker Containers Deep Dive
Docker Containers Deep DiveWill Kinard
 
Academy PRO: Docker. Lecture 1
Academy PRO: Docker. Lecture 1Academy PRO: Docker. Lecture 1
Academy PRO: Docker. Lecture 1Binary Studio
 
Introducing docker
Introducing dockerIntroducing docker
Introducing dockerDharmit Shah
 
Powering Microservices with Docker
Powering Microservices with DockerPowering Microservices with Docker
Powering Microservices with DockerCognizant
 
Docker - Frank Maounis
Docker - Frank MaounisDocker - Frank Maounis
Docker - Frank MaounisFrank Maounis
 
CONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptxCONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptxSanjuGamesphere
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )Imo Inyang
 

Ähnlich wie Containerization (20)

Docker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemDocker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker Ecosystem
 
Docker intro
Docker introDocker intro
Docker intro
 
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...Docker Understanding, What is Docker? Why Docker? How do I containerize somet...
Docker Understanding, What is Docker? Why Docker? How do I containerize somet...
 
Docker slides
Docker slidesDocker slides
Docker slides
 
Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deployment
 
paper
paperpaper
paper
 
Techdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err MicrocosmosTechdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err Microcosmos
 
Using Docker container technology with F5 Networks products and services
Using Docker container technology with F5 Networks products and servicesUsing Docker container technology with F5 Networks products and services
Using Docker container technology with F5 Networks products and services
 
What is Docker?
What is Docker?What is Docker?
What is Docker?
 
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
 
Application Deployment on Openstack
Application Deployment on OpenstackApplication Deployment on Openstack
Application Deployment on Openstack
 
Docker Containers Deep Dive
Docker Containers Deep DiveDocker Containers Deep Dive
Docker Containers Deep Dive
 
Academy PRO: Docker. Lecture 1
Academy PRO: Docker. Lecture 1Academy PRO: Docker. Lecture 1
Academy PRO: Docker. Lecture 1
 
Introducing docker
Introducing dockerIntroducing docker
Introducing docker
 
Powering Microservices with Docker
Powering Microservices with DockerPowering Microservices with Docker
Powering Microservices with Docker
 
Docker - Frank Maounis
Docker - Frank MaounisDocker - Frank Maounis
Docker - Frank Maounis
 
CONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptxCONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptx
 
Docker handons-workshop-for-charity
Docker handons-workshop-for-charityDocker handons-workshop-for-charity
Docker handons-workshop-for-charity
 
Docker-Intro
Docker-IntroDocker-Intro
Docker-Intro
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
 

Kürzlich hochgeladen

Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 

Kürzlich hochgeladen (20)

Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 

Containerization

  • 1. Introduction Most of cloud datacenters use virtualization which is implemented by hypervisors such as Xen, KVM or Vsphere. Container as a good alternative to hypervisor Most of major IT vendors such as Google, Amazon, and Microsoft and academic researchers have been interested in containerization of cloud datacenters to overcome drawbacks of traditional hypervisor based virtualization[02]. Google: 'EVERYTHING at Google runs in a container‘; Two billion containers a week  Docker Container, Linux Container(LxC), Warden Container, Open Vz Container.
  • 2. Container  “Containerization," an alternative to full machine virtualization in which an application is encapsulated in a container with its own operating environment.  Containerization is an attractive solution that enables developers to iterate faster.  It also offers additional benefits that address the overhead associated with virtual machines, allowing for higher utilization of resources in the software-defined data center.
  • 3. Virtual Machine Vs Container Source: https://www.docker.com/ Virtualized Hardware Operating System Software Application Extra Overhead to Run Machine Density is Limited (No of VM’s)
  • 4. Virtual Machine Vs Container Source: https://www.docker.com/ More Density (No of Container’s) Booting time is fast Don’t Emulate the whole hardware Drawback is Same OS
  • 5. Layers of containers Kernel is same for all applications Bootfs Virtual File system to Docker Images Layer of Images Readable Container Writable. If one VM Image is require 1GB, then 100 VM’s require 100 GB  If one Container is require 1GB, then 100 Containers require 1GB(Sharing the Image) Source: https://www.docker.com/
  • 7. Linux Containers Linux distribution provide kernel mechanisms such as oNamespaces: Allows groups of processes to be separated, preventing them from seeing resources in other groups. oControl groups: cgroups (abbreviated from control groups) is a Linux kernel feature that limits, accounts, and isolates the resource usage (CPU, memory, disk I/O, network, etc.) of a collection of processes. Documentation of cgroups-v2 first appeared in Linux kernel 4.5 released on March 14, 2016
  • 9. 6 Container Technologies Docker Docker Docker Swarm Linux Container(LxC) Kubernetes
  • 10. 6.1 Docker Docker is the world’s leading software container platform. Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
  • 13. 7. Docker Swarm Docker swarm mode is Docker’s solution for managing a cluster of Docker engines running on multiple machines called SWARM, Where you can deploy application services which are Docker Container. Scheduler Swarm comes with a built-in scheduler. It currently provides basic functionalities, such as scheduling containers based on constraints or affinity (co-scheduling of containers), persistent storage and multiple scheduling strategies like binpacking or random. As per the document of Docker swarm they said, “We plan to add more features to the built-in scheduler such as rebalancing (in case of host failure) and global scheduling (schedule containers on every node)” o Virtual Container ID o Rebalancing o Global scheduling Source: https://github.com/docker/swarm/blob/master/ROADMAP.md Posted May 27,2016
  • 14. 7. Scheduling Using Docker Swarm Swarm available filters  Port  Health Constraint Affinity  Docker Swarm strategies  Binpack  Random Spread
  • 15. 7.1.1 Swarm available Filters Port Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379
  • 16. 7.1.2 Swarm available Filters Health Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Node is Not Healthy
  • 17. 7.1.3 Swarm available Filters Constraint Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Constraint==Ubuntu Fedora Specific OS Kernel & Hardware Arch Linux Ubuntu
  • 18. 7.1.4 Swarm available Filters Affinity Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Side By Nginx Fedora Attraction Between Container Along With, Not Along With Arch Linux Ubuntu
  • 19. 7.2.1 Docker Swarm strategies Binpack Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Side By Nginx Attraction Between Container Along With, Not Along With
  • 20. 7.2.2 Docker Swarm strategies Random Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Side By Nginx Attraction Between Container Along With, Not Along With
  • 21. 7.2.3 Docker Swarm strategies Spread Docker Engine Docker Engine Docker Engine Swarm Manager Nginx: 6379 Nginx: 6379 Side By Nginx Attraction Between Container Along With, Not Along With