SlideShare a Scribd company logo
HUAWEI TECHNOLOGIES CO., LTD.
www.huawei.com
Mesos vs. Kubernetes
… a quick look …
Krishna M Kumar
Lead Architect
Bangalore Cloud Foundry Meetup – 28th Mar 2015
HUAWEI TECHNOLOGIES CO., LTD. 2
contents - mesos vs. kubernetes – the TOP TEN
1. We are comparing – The what part!
10. Where to look further – The References
5. The bits and pieces – The Components
3. The guys who plays together – The Partners/Customers
4. Unknown internals – The Architecture
7. The comparative landscape – The Competitors
2. What you get it – The Features
9. So Finally What – The Conclusion
6. Who does the real job – The Scheduler
8. What the world is going to do – The Future
HUAWEI TECHNOLOGIES CO., LTD. 3
Mesos Kubernetes
 Apache Mesos is a cluster manager that provides efficient
resource isolation and sharing across distributed
applications, or frameworks.
 Apache Mesos abstracts CPU, memory, storage, and other
compute resources away from machines (physical or virtual),
enabling fault-tolerant and elastic distributed systems.
 Google Kubernetes brings 'Google style' cluster
management capabilities to the world of virtual machines, or
'on the metal' scenarios.
 For production Google uses Omega/Borg, not Kubernetes
which is in beta.
• Mesos using same principle as Linux Kernel but higher layer
of abstraction.
• It can run Hadoop, MPI, Hypertable, Spark, and other
frameworks on a dynamically shared pool of nodes.
• Manage a cluster of Linux containers as a single system.
• Kubernetes works with Mesos as Framework like Marathon
Frameworks.
 Was developed at the University of California, Berkeley year
2009 developed by Benjamin Hindman, Andy Konwinski, Matel
Zaharia as well as professor Ion Stoica
 Become top level Apache project from July 2013
 Project Started at Google
 It is still in Beta stage
Works with various Frameworks like Marathon, Cronos. You can
write your own. There is a core algorithm(DRF) to share
resources and you can define your own scheduling policy.
Frameworks does Fault Tolerance, Load balancing, Quotas,
Discovery, etc.
Kubernetes establishes robust declarative primitives for
maintaining the desired state requested by the user. Self-healing
mechanisms, such as auto-restarting, re-scheduling, and
replicating containers require active controllers, not just
imperative orchestration.
1. We are comparing – The what part!
HUAWEI TECHNOLOGIES CO., LTD. 4
Mesos Kubernetes
Written in C++, Create a big resource pool from all
resources.
Written in Golang, works well with CoreOS, Red Hat
Atomic. Easy to run cluster resources.
Full control of the containers scheduled. Custom schedule
can manage the containers and VMs as desired.
Kubernetes will do the containers. Pods – a group of
containers scheduled on the same host supports
composable micro services.
Since Mesos enables you to run stateless services such
as web servers or application servers on the same cluster
as Spark for analytics purposes, it increases the overall
cluster utilization and accommodates the effects of data
gravity.
You can deploy any service you like into Kubernetes.
There are also some services with built-in Kubernetes
support. Cassandra, RethinkDB and Spark are some of
them. This makes better utilization, reduce complexity and
service discovery much easier.
Project Features
• Scalability to 10,000s of nodes
• Fault-tolerant replicated master and slaves using ZooKeeper
• Support for Docker containers
• Native isolation between tasks with Linux Containers
• Multi-resource scheduling (memory, CPU, disk, and ports)
• Java, Python and C++ APIs for developing new parallel applications
• Web UI for viewing cluster state
Project Features
• Primarily targeted at applications composed of multiple containers,
• such as elastic, distributed micro-services.
• Support multiple platforms
• Easy to get up and running & portable
• Manages Docker deployment well
• Scheduling provides out of the box
• Monitoring Dashboard
2. What you get it – The Features
HUAWEI TECHNOLOGIES CO., LTD. 5
Mesos Kubernetes
4. The guys who plays together – The Partners/Customers
Organizations using Mesos:
http://mesos.apache.org/documentation/latest/powered-by-mesos/
Twitter
Airbnb
Apple
Cisco
Ericson
Ebay
Mesosphere
Netflix
Google
Microsoft
IBM
RedHat
Docker
Mesosphere
SaltStack
CoreOS
Tectonic
Mirantis
Openstack
VMWare
HUAWEI TECHNOLOGIES CO., LTD. 6
Mesos Kubernetes
5. Unknown internals – The Architecture
See Components in next slide for more details.
HUAWEI TECHNOLOGIES CO., LTD. 7
Mesos Kubernetes
1. Master – Enable sharing of resource
2. Slave – Execute the task in it
3. Cluster – a group of machines
4. ZooKeeper – distributed synchroniztion/configuration
5. Framework – scheduler + executor
6. Scheduler – Offer resources
7. Executor – Run the Framework task
8. Task – a job to run
9. Containerizer – run & monitor executors
1. Master – Cluster controlling unit
2. etcd – HA Key/value store
3. API Server - Observing the state of the cluster
4. Controller Manager – runs multiple controllers
5. Scheduler Server – assigns workloads to nodes
6. Minion – server that perform work
7. Kubelet - server/slave node that runs pods
8. Proxy Service – host subnetting to external parties
9. Pods – One or more containers
10.Services – load balancer for containers
11.Replication Controller – For horizontally-scaled pods
12.Labels – A tag for work unit for grouping
Related:
1. CoreOS – Chrome OS based Linux distro
2. Fleet – Orchestrate CoreOS Clusters
3. Borg – massive scale resource manager
4. Omega – massive scale cluster manager
 More detailed explanations of the components: https://github.com/mesosphere/kubernetes-mesos/issues/285
6. The bits and pieces – The Components
HUAWEI TECHNOLOGIES CO., LTD. 8
Mesos Kubernetes
7. Who does the real job – The Scheduler
The scheduler is configurable and at compile time which fit predicates
and priority functions you want Kubernetes to apply.
It has two types of policies, FitPredicate - The sum of the requested
resources of the container(s) already running on the machine plus the
requested resources of the new container(s) you are considering
scheduling onto the machine must not be greater than the capacity of
the machine& PriorityFunction - The scheduler may find that multiple
machines "fit" the pod and it prefers the machine whose already-
running pod consume the least resources.
Future Goals -- Scheduling is a policy-rich, topology-aware,
workload-specific function that significantly impacts availability,
performance, and capacity. The scheduler needs to take into account
individual and collective resource requirements, quality of service
requirements, hardware/software/policy constraints, affinity and anti-
affinity specifications, data locality, inter-workload interference,
deadlines, and so on. Workload-specific requirements will be exposed
through the API as necessary.
Mesos has two levels of scheduling; first one intra-Frameworks level
as in below and second at inter-Framework level application specific.
HUAWEI TECHNOLOGIES CO., LTD. 9
8. The comparative landscape – The Competitors
HUAWEI TECHNOLOGIES CO., LTD. 10
Mesos Kubernetes
 Silicon Valley startup Mesosphere is
betting big on Mesos to create its future
Data Center Operating System.
 Several top companies are using Mesos
in their production environment.
 Google’s Flagship Data Center product
for cloud hosting with lots of industry
backing.
 Mesosphere have integrated Mesos and
Kubernetes together.
Focusing more on Enterprise adoption like Security,
Encryption, Reliability and Authentication
by Ben Hindman – Mesos Creator.
Better scheduling algorithm & Spanning across
multiple location is challenge.
By Eric Brewer, VP Google & CAP Theorem Creator.
Customers can choose utilization in datacenters,
security and reliability at scale – can be brought to
container- and VM-based environments using
Mesos. Huge flexibility of integrating any kind of
framework and so continue to grow popularly.
Kubernetes to be awesome everywhere, even for
customers who will run their apps on other clouds or
in their own datacenters - goal for Kubernetes is
ubiquity. AS more and more Docker deployment
happens and Kubernetes gets more maturity, it may
act alone without Mesos to deliver similar value what
Mesos provides!
9. What the world is going to do – The Future
HUAWEI TECHNOLOGIES CO., LTD. 11
10. So Finally What – The Conclusion
Together Kubernetes and Mesos are a match made in heaven.
Kubernetes enables the Pod (group of co-located containers) abstraction, along with Pod labels for service discovery, load-
balancing, and replication control.
Mesos provides the fine-grained resource allocations for pods across nodes in a cluster, and can make Kubernetes play nicely
with other frameworks running on the same cluster resources
- Stackoverflow
Use Mesos for:
Heavy Duty Production
Implement a new capability
Need multiple Framework
For existing workloads
Full control of workloads
Use Kubernetes for:
Testing alpha/beta
Very easy to setup and start
Pre-built scheduler algorithm
Container only world
More features on the way
HUAWEI TECHNOLOGIES CO., LTD. 12
10. Where to look further – The References
1. Mesos - https://github.com/apache/mesos/
2. Kubernetes - https://github.com/googlecloudplatform/kubernetes
3. Mesos Architecture - http://mesos.apache.org/documentation/latest/mesos-architecture/
4. Kubernetes Design - https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/design
5. Kubernetes Scheduler - http://stackoverflow.com/questions/28857993/how-does-kubernetes-scheduler-work
6. Mesos Scheduler - http://cloudarchitectmusings.com/2015/04/08/playing-traffic-cop-resource-allocation-in-apache-
mesos/
7. Kubernetes Deployment - https://news.ycombinator.com/item?id=9653118
8. Mesosphere – Kubernetes-Mesos - https://github.com/mesosphere/kubernetes-mesos
9. Mesos and Kubernetes at scale - https://www.youtube.com/watch?v=pFCJ3WiVjyA
10. Mesos vs. Kubernetes - http://stackoverflow.com/questions/26705201/whats-the-difference-between-apaches-mesos-
and-googles-kubernetes
11. Kubernetes – Marathon - https://www.quora.com/What-is-the-difference-between-Googles-Kubernetes-and-
Mesospheres-Marathon
12. Mesos - Kubernetes PaaS - http://www.slideshare.net/MiguelZuniga1/platform-as-a-service-with-kubernetes-and-mesos
13. Mesos, Docker, Kubernetes - http://www.slideshare.net/timothysc/apache-coneu
14. Future of computing - https://medium.com/s-c-a-l-e/google-systems-guru-explains-why-containers-are-the-future-of-
computing-87922af2cf95
15. Future of Resource Manager by IBM - https://www.ibm.com/developerworks/community/blogs/1ba56fe3-efad-432f-
a1ab-58ba3910b073/entry/thoughts_on_future_of_resource_managers_and_schedulers_in_the_cloud?lang=en
Thank you
www.huawei.com
HUAWEI TECHNOLOGIES CO., LTD. 13

More Related Content

PDF
Deploying Containers in Production and at Scale
PDF
Mesos: The Operating System for your Datacenter
PDF
Container Orchestration Wars (Micro Edition)
PPTX
HA Kubernetes on Mesos / Marathon
PDF
Mesos: A State-of-the-art Container Orchestrator
PDF
Federated mesos clusters for global data center designs
PDF
Mesos: Cluster Management System
PDF
Musings on Mesos: Docker, Kubernetes, and Beyond.
Deploying Containers in Production and at Scale
Mesos: The Operating System for your Datacenter
Container Orchestration Wars (Micro Edition)
HA Kubernetes on Mesos / Marathon
Mesos: A State-of-the-art Container Orchestrator
Federated mesos clusters for global data center designs
Mesos: Cluster Management System
Musings on Mesos: Docker, Kubernetes, and Beyond.

What's hot (20)

PPTX
Mesos and Kubernetes ecosystem overview
PDF
Introduction to Apache Mesos
PPTX
Introduction to DC/OS
PDF
Scale your docker containers with Mesos
PDF
Introduction To Apache Mesos
PPTX
Introduction to Apache Mesos
PDF
Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)
PDF
Cloud Surfing: Kubernetes on Mesos
PDF
CI/CD with Docker, DC/OS, and Jenkins
PDF
Mesos and the Architecture of the New Datacenter
PDF
Apache Mesos: a simple explanation of basics
PDF
DEPLOYING A DOCKERIZED DISTRIBUTED APPLICATION IN MESOS
PDF
Kubernetes Multitenancy Karl Isenberg - KubeCon NA 2019
PPTX
Platform as a Service with Kubernetes and Mesos
PDF
Kubernetes on Top of Mesos on Top of DCOS
PPTX
Scalable On-Demand Hadoop Clusters with Docker and Mesos
PDF
Building and deploying a distributed application with Docker, Mesos and Marathon
PPTX
Docker, Mesos, Spark
PDF
Container Orchestration @Docker Meetup Hamburg
PDF
Integrating Docker with Mesos and Marathon
Mesos and Kubernetes ecosystem overview
Introduction to Apache Mesos
Introduction to DC/OS
Scale your docker containers with Mesos
Introduction To Apache Mesos
Introduction to Apache Mesos
Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)
Cloud Surfing: Kubernetes on Mesos
CI/CD with Docker, DC/OS, and Jenkins
Mesos and the Architecture of the New Datacenter
Apache Mesos: a simple explanation of basics
DEPLOYING A DOCKERIZED DISTRIBUTED APPLICATION IN MESOS
Kubernetes Multitenancy Karl Isenberg - KubeCon NA 2019
Platform as a Service with Kubernetes and Mesos
Kubernetes on Top of Mesos on Top of DCOS
Scalable On-Demand Hadoop Clusters with Docker and Mesos
Building and deploying a distributed application with Docker, Mesos and Marathon
Docker, Mesos, Spark
Container Orchestration @Docker Meetup Hamburg
Integrating Docker with Mesos and Marathon
Ad

Viewers also liked (20)

PDF
Container Orchestration Wars
PPTX
Using machine learning to determine drivers of bounce and conversion
PDF
Mesos and containers
PDF
Cloud Computing, Docker, Mesos, DCOS, Container, Big Data, Paas
PDF
DCOS Presentation
PPTX
Building and Deploying Application to Apache Mesos
PDF
Datacenter Computing with Apache Mesos - BigData DC
PPTX
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
PDF
Beginning mesos
PDF
Hidden Treasures of the Python Standard Library
PDF
Mesos meetup @ shutterstock
PDF
Dynamic Code Patterns: Extending Your Applications with Plugins
PDF
Announcing Databricks Cloud (Spark Summit 2014)
PDF
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
PPTX
PuttingItAllTogether
PDF
The thing with Fuel SAS helps the KLM Fuel & Emission DWH
PDF
Easy Docker Deployments with Mesosphere DCOS on Azure
PPTX
Mesos & Marathon - Piloter les services de votre système
PDF
Cloud Native Infrastructure Management Solutions Compared
PDF
Databricks Meetup @ Los Angeles Apache Spark User Group
Container Orchestration Wars
Using machine learning to determine drivers of bounce and conversion
Mesos and containers
Cloud Computing, Docker, Mesos, DCOS, Container, Big Data, Paas
DCOS Presentation
Building and Deploying Application to Apache Mesos
Datacenter Computing with Apache Mesos - BigData DC
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
Beginning mesos
Hidden Treasures of the Python Standard Library
Mesos meetup @ shutterstock
Dynamic Code Patterns: Extending Your Applications with Plugins
Announcing Databricks Cloud (Spark Summit 2014)
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
PuttingItAllTogether
The thing with Fuel SAS helps the KLM Fuel & Emission DWH
Easy Docker Deployments with Mesosphere DCOS on Azure
Mesos & Marathon - Piloter les services de votre système
Cloud Native Infrastructure Management Solutions Compared
Databricks Meetup @ Los Angeles Apache Spark User Group
Ad

Similar to Mesos vs kubernetes comparison (20)

PPTX
Cluster Management _ kubernetes MADIHA HARIFI
PDF
Apache Mesos Overview and Integration
PDF
Introduction to mesos bay
PDF
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
PDF
Introducing Apache Mesos
PDF
DevOps vs. Site Reliability Engineering (SRE) in Age of Kubernetes
PPTX
DevOps in Age of Kubernetes
PDF
Introduction to Apache Mesos and DC/OS
PPTX
Intro to cluster scheduler for Linux containers
PDF
Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
PPTX
Why is Kubernetes considered the next generation application platform
PPTX
Apache mesos - overview
PDF
Kubernetes v.s. mesos
PDF
Getting Started Running Apache Spark on Apache Mesos
PPTX
Kubernetes vs Apache Mesos What is the Difference.pptx
PDF
Introduction to DC/OS
PPTX
Introduction to mesos
PDF
Kubernetes One-Click Deployment: Hands-on Workshop (Munich)
PDF
Introduction to DC/OS
PDF
Cluster schedulers
Cluster Management _ kubernetes MADIHA HARIFI
Apache Mesos Overview and Integration
Introduction to mesos bay
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
Introducing Apache Mesos
DevOps vs. Site Reliability Engineering (SRE) in Age of Kubernetes
DevOps in Age of Kubernetes
Introduction to Apache Mesos and DC/OS
Intro to cluster scheduler for Linux containers
Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Why is Kubernetes considered the next generation application platform
Apache mesos - overview
Kubernetes v.s. mesos
Getting Started Running Apache Spark on Apache Mesos
Kubernetes vs Apache Mesos What is the Difference.pptx
Introduction to DC/OS
Introduction to mesos
Kubernetes One-Click Deployment: Hands-on Workshop (Munich)
Introduction to DC/OS
Cluster schedulers

More from Krishna-Kumar (20)

PDF
SODA Ambassadors & Community Ecosystem
PDF
Open Source Building Career and Competency
PDF
CCICI CIP 1.0 Testbed - Security access implementation and reference - v1.0
PDF
Google Anthos - Azure Stack - AWS Outposts :Comparison
PDF
Cloud Native Use Cases / Case Studies - KubeCon 2019 San Diego - RECAP
PDF
Cloud interoperability and open standards for digital india open infrasummit
PDF
Google Cloud Container Security Quick Overview
PDF
Kubernetes Application Deployment with Helm - A beginner Guide!
PDF
KubeCon + CloudNativeCon Barcelona and Shanghai 2019 - Highlights
PDF
Introduction to ieee standards development - Bangalore Section
PDF
IEEE Standards Association - Introduction
PDF
IoTShow.in Bangalore 2019 - a Recap on 'IoT and Edge' Talk.
PDF
Kubecon seattle 2018 recap - Application Deployment aspects
PPTX
Open Source Edge Computing Platforms - Overview
PDF
cncf overview and building edge computing using kubernetes
PDF
Evolution of containers to kubernetes
PDF
My Ladakh Marathon Run 2018
PPTX
Containers and workload security an overview
PDF
Now yoga - a study on where why what how
PPTX
CNCF Introduction - Feb 2018
SODA Ambassadors & Community Ecosystem
Open Source Building Career and Competency
CCICI CIP 1.0 Testbed - Security access implementation and reference - v1.0
Google Anthos - Azure Stack - AWS Outposts :Comparison
Cloud Native Use Cases / Case Studies - KubeCon 2019 San Diego - RECAP
Cloud interoperability and open standards for digital india open infrasummit
Google Cloud Container Security Quick Overview
Kubernetes Application Deployment with Helm - A beginner Guide!
KubeCon + CloudNativeCon Barcelona and Shanghai 2019 - Highlights
Introduction to ieee standards development - Bangalore Section
IEEE Standards Association - Introduction
IoTShow.in Bangalore 2019 - a Recap on 'IoT and Edge' Talk.
Kubecon seattle 2018 recap - Application Deployment aspects
Open Source Edge Computing Platforms - Overview
cncf overview and building edge computing using kubernetes
Evolution of containers to kubernetes
My Ladakh Marathon Run 2018
Containers and workload security an overview
Now yoga - a study on where why what how
CNCF Introduction - Feb 2018

Recently uploaded (20)

PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
history of c programming in notes for students .pptx
PDF
System and Network Administraation Chapter 3
PPTX
L1 - Introduction to python Backend.pptx
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ai tools demonstartion for schools and inter college
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
AI in Product Development-omnex systems
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Online Work Permit System for Fast Permit Processing
history of c programming in notes for students .pptx
System and Network Administraation Chapter 3
L1 - Introduction to python Backend.pptx
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
How to Choose the Right IT Partner for Your Business in Malaysia
ai tools demonstartion for schools and inter college
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
How to Migrate SBCGlobal Email to Yahoo Easily
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Softaken Excel to vCard Converter Software.pdf
Odoo Companies in India – Driving Business Transformation.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
ManageIQ - Sprint 268 Review - Slide Deck
Design an Analysis of Algorithms II-SECS-1021-03
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Navsoft: AI-Powered Business Solutions & Custom Software Development
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
AI in Product Development-omnex systems

Mesos vs kubernetes comparison

  • 1. HUAWEI TECHNOLOGIES CO., LTD. www.huawei.com Mesos vs. Kubernetes … a quick look … Krishna M Kumar Lead Architect Bangalore Cloud Foundry Meetup – 28th Mar 2015
  • 2. HUAWEI TECHNOLOGIES CO., LTD. 2 contents - mesos vs. kubernetes – the TOP TEN 1. We are comparing – The what part! 10. Where to look further – The References 5. The bits and pieces – The Components 3. The guys who plays together – The Partners/Customers 4. Unknown internals – The Architecture 7. The comparative landscape – The Competitors 2. What you get it – The Features 9. So Finally What – The Conclusion 6. Who does the real job – The Scheduler 8. What the world is going to do – The Future
  • 3. HUAWEI TECHNOLOGIES CO., LTD. 3 Mesos Kubernetes  Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks.  Apache Mesos abstracts CPU, memory, storage, and other compute resources away from machines (physical or virtual), enabling fault-tolerant and elastic distributed systems.  Google Kubernetes brings 'Google style' cluster management capabilities to the world of virtual machines, or 'on the metal' scenarios.  For production Google uses Omega/Borg, not Kubernetes which is in beta. • Mesos using same principle as Linux Kernel but higher layer of abstraction. • It can run Hadoop, MPI, Hypertable, Spark, and other frameworks on a dynamically shared pool of nodes. • Manage a cluster of Linux containers as a single system. • Kubernetes works with Mesos as Framework like Marathon Frameworks.  Was developed at the University of California, Berkeley year 2009 developed by Benjamin Hindman, Andy Konwinski, Matel Zaharia as well as professor Ion Stoica  Become top level Apache project from July 2013  Project Started at Google  It is still in Beta stage Works with various Frameworks like Marathon, Cronos. You can write your own. There is a core algorithm(DRF) to share resources and you can define your own scheduling policy. Frameworks does Fault Tolerance, Load balancing, Quotas, Discovery, etc. Kubernetes establishes robust declarative primitives for maintaining the desired state requested by the user. Self-healing mechanisms, such as auto-restarting, re-scheduling, and replicating containers require active controllers, not just imperative orchestration. 1. We are comparing – The what part!
  • 4. HUAWEI TECHNOLOGIES CO., LTD. 4 Mesos Kubernetes Written in C++, Create a big resource pool from all resources. Written in Golang, works well with CoreOS, Red Hat Atomic. Easy to run cluster resources. Full control of the containers scheduled. Custom schedule can manage the containers and VMs as desired. Kubernetes will do the containers. Pods – a group of containers scheduled on the same host supports composable micro services. Since Mesos enables you to run stateless services such as web servers or application servers on the same cluster as Spark for analytics purposes, it increases the overall cluster utilization and accommodates the effects of data gravity. You can deploy any service you like into Kubernetes. There are also some services with built-in Kubernetes support. Cassandra, RethinkDB and Spark are some of them. This makes better utilization, reduce complexity and service discovery much easier. Project Features • Scalability to 10,000s of nodes • Fault-tolerant replicated master and slaves using ZooKeeper • Support for Docker containers • Native isolation between tasks with Linux Containers • Multi-resource scheduling (memory, CPU, disk, and ports) • Java, Python and C++ APIs for developing new parallel applications • Web UI for viewing cluster state Project Features • Primarily targeted at applications composed of multiple containers, • such as elastic, distributed micro-services. • Support multiple platforms • Easy to get up and running & portable • Manages Docker deployment well • Scheduling provides out of the box • Monitoring Dashboard 2. What you get it – The Features
  • 5. HUAWEI TECHNOLOGIES CO., LTD. 5 Mesos Kubernetes 4. The guys who plays together – The Partners/Customers Organizations using Mesos: http://mesos.apache.org/documentation/latest/powered-by-mesos/ Twitter Airbnb Apple Cisco Ericson Ebay Mesosphere Netflix Google Microsoft IBM RedHat Docker Mesosphere SaltStack CoreOS Tectonic Mirantis Openstack VMWare
  • 6. HUAWEI TECHNOLOGIES CO., LTD. 6 Mesos Kubernetes 5. Unknown internals – The Architecture See Components in next slide for more details.
  • 7. HUAWEI TECHNOLOGIES CO., LTD. 7 Mesos Kubernetes 1. Master – Enable sharing of resource 2. Slave – Execute the task in it 3. Cluster – a group of machines 4. ZooKeeper – distributed synchroniztion/configuration 5. Framework – scheduler + executor 6. Scheduler – Offer resources 7. Executor – Run the Framework task 8. Task – a job to run 9. Containerizer – run & monitor executors 1. Master – Cluster controlling unit 2. etcd – HA Key/value store 3. API Server - Observing the state of the cluster 4. Controller Manager – runs multiple controllers 5. Scheduler Server – assigns workloads to nodes 6. Minion – server that perform work 7. Kubelet - server/slave node that runs pods 8. Proxy Service – host subnetting to external parties 9. Pods – One or more containers 10.Services – load balancer for containers 11.Replication Controller – For horizontally-scaled pods 12.Labels – A tag for work unit for grouping Related: 1. CoreOS – Chrome OS based Linux distro 2. Fleet – Orchestrate CoreOS Clusters 3. Borg – massive scale resource manager 4. Omega – massive scale cluster manager  More detailed explanations of the components: https://github.com/mesosphere/kubernetes-mesos/issues/285 6. The bits and pieces – The Components
  • 8. HUAWEI TECHNOLOGIES CO., LTD. 8 Mesos Kubernetes 7. Who does the real job – The Scheduler The scheduler is configurable and at compile time which fit predicates and priority functions you want Kubernetes to apply. It has two types of policies, FitPredicate - The sum of the requested resources of the container(s) already running on the machine plus the requested resources of the new container(s) you are considering scheduling onto the machine must not be greater than the capacity of the machine& PriorityFunction - The scheduler may find that multiple machines "fit" the pod and it prefers the machine whose already- running pod consume the least resources. Future Goals -- Scheduling is a policy-rich, topology-aware, workload-specific function that significantly impacts availability, performance, and capacity. The scheduler needs to take into account individual and collective resource requirements, quality of service requirements, hardware/software/policy constraints, affinity and anti- affinity specifications, data locality, inter-workload interference, deadlines, and so on. Workload-specific requirements will be exposed through the API as necessary. Mesos has two levels of scheduling; first one intra-Frameworks level as in below and second at inter-Framework level application specific.
  • 9. HUAWEI TECHNOLOGIES CO., LTD. 9 8. The comparative landscape – The Competitors
  • 10. HUAWEI TECHNOLOGIES CO., LTD. 10 Mesos Kubernetes  Silicon Valley startup Mesosphere is betting big on Mesos to create its future Data Center Operating System.  Several top companies are using Mesos in their production environment.  Google’s Flagship Data Center product for cloud hosting with lots of industry backing.  Mesosphere have integrated Mesos and Kubernetes together. Focusing more on Enterprise adoption like Security, Encryption, Reliability and Authentication by Ben Hindman – Mesos Creator. Better scheduling algorithm & Spanning across multiple location is challenge. By Eric Brewer, VP Google & CAP Theorem Creator. Customers can choose utilization in datacenters, security and reliability at scale – can be brought to container- and VM-based environments using Mesos. Huge flexibility of integrating any kind of framework and so continue to grow popularly. Kubernetes to be awesome everywhere, even for customers who will run their apps on other clouds or in their own datacenters - goal for Kubernetes is ubiquity. AS more and more Docker deployment happens and Kubernetes gets more maturity, it may act alone without Mesos to deliver similar value what Mesos provides! 9. What the world is going to do – The Future
  • 11. HUAWEI TECHNOLOGIES CO., LTD. 11 10. So Finally What – The Conclusion Together Kubernetes and Mesos are a match made in heaven. Kubernetes enables the Pod (group of co-located containers) abstraction, along with Pod labels for service discovery, load- balancing, and replication control. Mesos provides the fine-grained resource allocations for pods across nodes in a cluster, and can make Kubernetes play nicely with other frameworks running on the same cluster resources - Stackoverflow Use Mesos for: Heavy Duty Production Implement a new capability Need multiple Framework For existing workloads Full control of workloads Use Kubernetes for: Testing alpha/beta Very easy to setup and start Pre-built scheduler algorithm Container only world More features on the way
  • 12. HUAWEI TECHNOLOGIES CO., LTD. 12 10. Where to look further – The References 1. Mesos - https://github.com/apache/mesos/ 2. Kubernetes - https://github.com/googlecloudplatform/kubernetes 3. Mesos Architecture - http://mesos.apache.org/documentation/latest/mesos-architecture/ 4. Kubernetes Design - https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/design 5. Kubernetes Scheduler - http://stackoverflow.com/questions/28857993/how-does-kubernetes-scheduler-work 6. Mesos Scheduler - http://cloudarchitectmusings.com/2015/04/08/playing-traffic-cop-resource-allocation-in-apache- mesos/ 7. Kubernetes Deployment - https://news.ycombinator.com/item?id=9653118 8. Mesosphere – Kubernetes-Mesos - https://github.com/mesosphere/kubernetes-mesos 9. Mesos and Kubernetes at scale - https://www.youtube.com/watch?v=pFCJ3WiVjyA 10. Mesos vs. Kubernetes - http://stackoverflow.com/questions/26705201/whats-the-difference-between-apaches-mesos- and-googles-kubernetes 11. Kubernetes – Marathon - https://www.quora.com/What-is-the-difference-between-Googles-Kubernetes-and- Mesospheres-Marathon 12. Mesos - Kubernetes PaaS - http://www.slideshare.net/MiguelZuniga1/platform-as-a-service-with-kubernetes-and-mesos 13. Mesos, Docker, Kubernetes - http://www.slideshare.net/timothysc/apache-coneu 14. Future of computing - https://medium.com/s-c-a-l-e/google-systems-guru-explains-why-containers-are-the-future-of- computing-87922af2cf95 15. Future of Resource Manager by IBM - https://www.ibm.com/developerworks/community/blogs/1ba56fe3-efad-432f- a1ab-58ba3910b073/entry/thoughts_on_future_of_resource_managers_and_schedulers_in_the_cloud?lang=en