SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Similaire à 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
 

Similaire à 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 )
 

Dernier

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
(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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
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
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
(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
 

Dernier (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(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...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
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
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
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...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
(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...
 

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