Musings on Mesos: Docker, Kubernetes, and Beyond.

T
Timothy St. ClairPrinciple Software Engineer at Red Hat
Musings on Mesos: 
Docker, Kubernetes, and Beyond 
Timothy St. Clair 
@timothysc 
Mesos committer and PMC member 
11/19/2014 
INTERNAL ONLY
Audience Poll - Mesos 
● I have ... 
1. Only heard talks about Mesos, nothing more. 
2. Played with Mesos on a sample cluster, initial POC. 
3. Have a Mesos cluster in a production environment 
4. DUDE.!.! I wrote a custom Mesos framework in 
Haskell before breakfast Bro ... 
INTERNAL ONLY
Quick Overview – Mesos 101 Condensed 
At its core, Mesos is a focused, scalable, two-phased 
meta-scheduler that provides primitives 
to express a wide variety of scheduling patterns 
and use cases. Solutions are written atop of 
Mesos as frameworks. Frameworks are targeted 
for a particular use case, and maintain domain 
specific information. By remaining focused at its 
core, Mesos is not architecturally encumbered by 
domain specific problems that often exist in other 
monolithic schedulers. 
INTERNAL ONLY
The Response I Always Hope For 
INTERNAL ONLY
Typical Response 
INTERNAL ONLY
101 Unpacking: Meta-Scheduling? 
At its core, Mesos is a focused, scalable, meta-scheduler 
that provides primitives to express a 
wide variety of scheduling patterns and use 
cases. 
● It means that Mesos enables other distributed 
applications to define their own scheduling 
policies, with an core algorithm (DRF) to share 
resources across those applications. 
● Mesos can run on 1-O(10^4) nodes. 
So, it is a scheduler... that allows distributed 
applications to share resources in a cluster. 
INTERNAL ONLY
101 Unpacking: frameworks? 
Solutions are written atop of Mesos as 
frameworks, and are targeted for a particular use 
case. 
● Framework = distributed application = 
scheduler 
● Framework could be anything from batch, 
application, or micro-service scheduling. 
INTERNAL ONLY
101 Unpacking: Architecturally Encumbered? 
Mesos is not architecturally encumbered by 
domain specific problems that often exist within 
other monolithic schedulers. 
● Mesos does not subsume domain specific 
problems, that is a frameworks job. 
INTERNAL ONLY 
● Service scheduling 
● Fault tolerance 
● Load balancing 
● Discovery 
● Batch Scheduling 
● Quotas (user/group) 
● Limits
101 Motivation: New Reality 
● New applications need to be: 
● Fault tolerant (Withstand failure) 
● Scalable (Not crumble under it's own weight) 
● Elastic (Can grow and shrink based on demand) 
● Multi-tenent (It can't have it's own dedicated cluster) 
● Must play nice with the other kids. 
● So what does that really mean? 
INTERNAL ONLY
101 Motivation: Distributed Application 
● “There's Just No Getting Around It: You're Building a Distributed System” Mark 
INTERNAL ONLY 
Cavage 
● queue.acm.org/detail.cfm?id=2482856 
● Key takeaways on architecture: 
● Decompose the business applications into discrete services on the boundaries of 
fault domains, scaling, and data workload. 
● Make as many things as possible stateless 
● When dealing with state, deeply understand CAP, latency, throughput, and 
durability requirements. 
“Without practical experience working on successful—and failed—systems, most 
engineers take a "hopefully it works" approach and attempt to string together off-the-shelf 
software, whether open source or commercial, and often are unsuccessful at building a 
resilient, performant system. In reality, building a distributed system requires a methodical 
approach to requirements along the boundaries of failure domains, latency, throughput, 
durability, consistency, and desired SLAs for the business application at all aspects of the 
application.”
101 Summary : Distributed Systems Kernel 
Cluster Manager (google-ism) 
● Mesos is built using the same principles as the Linux 
kernel, only at a different level of abstraction. 
“We wanted people to be able to program for the data-center 
just like they program for their laptop” ~ Ben 
INTERNAL ONLY 
Hindman 
● Computer : Data-center 
● Kernel : Mesos 
● Application : Distributed application 
● Operating System : (Mesos+Frameworks+ 
Ecosystem)
So Having a Kernel for Distributed Systems 
Makes a Lot of Sense.?.? ¯_(ツ)_/¯ 
INTERNAL ONLY
Mesos @ 50K 
http://mesos.apache.org/documentation/latest/mesos-frameworks/ 
MPI Hadoop Spark Storm 
INTERNAL ONLY 
Workloads 
Kernel 
batch services 
Frameworks 
Marathon Kubernetes Aurora 
distributed file system DFS 
distributed resources: CPU, RAM, I/O, FS, rack locality, etc. Cluster
Audience Poll - Docker 
● I have ... 
1. Only heard talks/news about Docker. 
2. Played with Docker and use it on a single host. 
3. Have Docker running in a production cluster. 
4.DUDE.!.! I've ran 300 Million containers last month. 
INTERNAL ONLY
Docker Docker Docker 
●Combination of technologies 
● cgroups + namespaces + image format + lifecycle 
management + application virtualization 
●Git like semantics around image building 
INTERNAL ONLY 
● pull, commit, push ... 
● Application virtualization 
● Native Speeds 
● >> Density the virtual machines
The 'Holy Grail' of Clustering 
● Provide maximum application density per-machine 
(currently in the hundreds). 
INTERNAL ONLY 
● >> Then virtualization 
● Improved 'application namespace' isolation 
across your cluster 
● No longer need to ensure stacks | sub-stacks are 
rolled onto your cluster. 
● Enables multiple versions across a cluster easily 
●Combined with clustering, it can obviate 
traditional 'deployment problems'
Typical Response 
INTERNAL ONLY
Reality 
Docker 90% of the things, 
but that last 10% of things 
may require super-privileged 
INTERNAL ONLY 
containers, 
where the container has 
full access to the system 
and that gets kind of 
funky because then you 
could have dependency 
leakage... and potentially 
a host of other versioning 
issues. And uhhhhhhh..
Reality 
● The last 10% 
● Applications that want or 
need to load custom 
kernel drivers. 
● Low level system 
applications 
(namespaces) 
● Cluster managers, such 
as Mesos which 
leverage namespaces. 
INTERNAL ONLY
Reality 
● Networking is thorny, with 
many solutions O(10^2) 
● Pipework 
● Flannel 
● Weave 
● vSwitch 
● What happens when 
density is on the order 
1000's. 
● What happens if you 
wanted to have a density 
on the order of 10,000+. 
INTERNAL ONLY
10,000+ .?.? 
● What is the average 
utilization of your data 
center? 
● Twitter & Google run 
between 20-30% 
(Quasar paper) 
● “ 640K ought to be 
enough for anybody.” - 
B.Gates. 
INTERNAL ONLY
Whatever 
INTERNAL ONLY
(Apache Infra) “What if.... There Were Official 
Apache Repositories on Docker-Hub.” 
INTERNAL ONLY
Mesos and Docker 
Integration 
"If a Docker application is a Lego brick, Kubernetes would be 
like a kit for building the Millennium Falcon and the Mesos 
cluster would be like a whole Star Wars universe made of 
Legos." ~ Solomon 
INTERNAL ONLY 
● 1st classed in 0.20 
● A lot of feedback and updated 0.21 (soon-ish) 
● Service Scheduling 
● Marathon + HA-Proxy + Docker – 10^4 
● Kubernetes (WIP) 
● Batch 
● Spark (https://issues.apache.org/jira/browse/SPARK-2691) 
● Chronos
Mesos and Docker 
Use Cases 
● Elastic applications in a shared multi-tenant environment 
RAILS Memcached Spark 
100% 
75% 
50% 
25% 
Graphic Courtesy of Paco Nathan 
INTERNAL ONLY 
100% 
75% 
50% 
25% 
0% 
100% 
75% 
50% 
25% 
0% 
0% 
tt 
100% 
75% 
50% 
25% 
0%
Can I Write My Own Framework That Uses 
Docker? 
INTERNAL ONLY 
● YES! 
● Mesos has 1st class Docker support, by providing an API 
DockerInfo {} 
● BUT... 
● Writing a framework in development is relatively easy 
● Writing an application that is highly available, scales 
well, can be difficult. 
● HOPE 
● Creation of higher order libraries (libc) to help make it 
easier to create frameworks.
Can you run Mesos from a Docker Container? 
● Current State – sort of. 
● mesos-master 
● Using bridged networking 
you can easily run a HA 
configuration 
● mesos-slave 
● mesos requires low level 
system access which 
makes it difficult to put in 
a container and maintain 
full feature parity 
● TBD with super 
privileged containers 
INTERNAL ONLY
How are we doing? ¯_(ツ)_/¯ 
INTERNAL ONLY
Audience Poll - Kubernetes 
● I have ... 
1. Only heard talks/news about kubernetes. 
2. Played with kubernetes and use it on a single host. 
3. Have kubernetes running on GCE. 
INTERNAL ONLY
Kubernetes (WIP) 
● Kubernetes is a system for managing containerized 
applications across multiple hosts, providing basic 
mechanisms for deployment, maintenance, and scaling 
of applications. Its APIs are intended to serve as the 
foundation for an open ecosystem of tools, automation 
systems, and higher-level API layers. 
● Kubernetes establishes robust declarative primitives for 
maintaining the desired state requested by the user. 
These primitives are the main value added by 
Kubernetes. 
INTERNAL ONLY 
● pre-production beta.
Kubernetes 
● Pods are the atom of scheduling, and are a 
group of containers that are scheduled onto the 
same host. 
● Pods facilitate data sharing and communication. 
INTERNAL ONLY 
● Shared mount point 
● Shared network namespace/IP and port space 
● Higher order abstraction to the low level interface of 
containers 
● Composable micro-services
Kubernetes – pod.json 
INTERNAL ONLY 
{ "apiVersion": "v1beta1", 
"kind": "Pod", 
"id": "redis-master-pod", 
"desiredState": { 
"manifest": { 
"version": "v1beta1", 
"id": "redis-master-pod", 
"containers": [{ 
"name": "redis-master", 
"image": "gurpartap/redis", 
"ports": [{ "name": "redis-server", "containerPort": 6379 }] ... + labels
Kubernetes framework 
for Mesos (WIP) 
● 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. 
● Provide advanced scheduling capabilities (grouping, 
spreading ...) 
INTERNAL ONLY 
● Availability zone fail-over 
● Elasticity – Scale up and down kublets 
● MORE TO COME...
Kubernetes vs. Mesos? 
INTERNAL ONLY 
● Not at all! 
● Kubernetes is an opinionated declarative model on how to 
address micro-services 
● Mesos provides an imperative framework by which 
application developers can define scheduling policy in a 
programmatic fashion. 
● When leveraged together it provides a data-center with the 
ability to both.
Kubernetes - Mesos = Static 
Provisioning 
Spark Kubernetes 
INTERNAL ONLY
Hows your social media updates? 
#Mesos + #ApacheCon FTW ¯_(ツ)_/¯ 
INTERNAL ONLY
BEYOND 
INTERNAL ONLY
Mesos, Docker, and Kubernetes are Still Very 
Young. Expect change... 
INTERNAL ONLY
1st Classing PODS into Docker Core 
● https://github.com/docker/docker/pull/8859 
● Make a POD become the fundamental unit of abstraction 
● Make the Container (Letter), while the POD (Envelope), 
Clustering becomes the mail service. 
● Problem – Most user have no idea what a POD is 
● Answer - They don't really need to, it could likely be hidden 
or renamed. 
INTERNAL ONLY
Docker Clustering 
● https://github.com/docker/docker/pull/8859 
● Clustering will be done via a plugin whose API is TBD but 
due out later... 
● The Docker CLI is meant to be the primary interface to 
support Docker clustering, and the plugin will extend the CLI 
via options (TBD). e.g. --constraints=TBD 
● Kubernetes, Mesos, or possibly Marathon, could be added 
as a back end via the plugin API. 
● Any concepts, such as 1st classing PODs is a docker-core 
constraint. 
INTERNAL ONLY
Native Docker Multi-Host Networking 
● https://github.com/docker/docker/issues/8951 
● The power of Docker is its simplicity, yet it scales to the 
demands of hyper-scale deployments. The same cannot be 
said today for the native networking solution in Docker. This 
proposal aims to bridge that gap. The intent is to implement 
a production-ready reliable multi-host networking solutions 
that is native to Docker while remaining laser focused on the 
user friendly needs of the developers environment that is at 
the heart of the Docker transformation. 
INTERNAL ONLY 
● Programmable vSwitch
Hand Wavy - Future of a 
Kubernetes 
Framework atop Mesos 
●Drive towards parity with google cluster 
management tools #GCELive. 
● Elastic model around micro-services 
● If (ServiceX.cpuload>80) then; Mesos.addMoreCapacity() 
● Workload migration and maintenance. 
● Offload nodes for maintenance. 
INTERNAL ONLY 
● Resize and defrag.
What Does This Mean for Mesos 
● Integration changes on the horizon 
● Internal container handling. 
● Framework API – DockerInfo {}, will likely change 
● Docker CLI could be used to drive containers on a 
Mesos cluster. 
● Mesos mantra continues unabated: “Multiple models 
all supported by one common infrastructure” 
● Multiple service models (Marathon, Kubernetes, 
Aurora) 
● Multiple batch models (Spark, Chronos) 
INTERNAL ONLY
BUT WAIT! THERES MORE 
On the Horizon – Core Mesos Features 
● Primitives to support stateful services (HDFS, 
Cassandra, etc.) 
INTERNAL ONLY 
● Persistent disk data 
● Lazy resource reservation 
● Expanded Disk Isolation 
● I/O 
● FS/Mount namespace 
● Support multiple spindles 
● Dynamic slave attributes
Mesos and the Surrounding Ecosystem as an 
Operating System. 
● Just getting started, 
first #MesosCon 
(Aug) 
● Even though Mesos 
(kernel) has matured 
@ Twitter, it is still 
very early on. 
● We are still in the 
very early stages for 
both Docker and 
Kubernetes. 
INTERNAL ONLY
THANK YOU! 
@timothysc 
INTERNAL ONLY
1 of 46

Recommended

HA Kubernetes on Mesos / Marathon by
HA Kubernetes on Mesos / MarathonHA Kubernetes on Mesos / Marathon
HA Kubernetes on Mesos / MarathonCobus Bernard
356 views45 slides
Mesos and Kubernetes ecosystem overview by
Mesos and Kubernetes ecosystem overviewMesos and Kubernetes ecosystem overview
Mesos and Kubernetes ecosystem overviewKrishna-Kumar
2.2K views43 slides
Mesos ♥ Docker by
Mesos ♥ DockerMesos ♥ Docker
Mesos ♥ DockerAish Fenton
7.2K views13 slides
Introduction to Apache Mesos by
Introduction to Apache MesosIntroduction to Apache Mesos
Introduction to Apache MesosJoe Stein
19.1K views50 slides
Apache Mesos: a simple explanation of basics by
Apache Mesos: a simple explanation of basicsApache Mesos: a simple explanation of basics
Apache Mesos: a simple explanation of basicsGladson Manuel
3K views24 slides
Introduction to Apache Mesos by
Introduction to Apache MesosIntroduction to Apache Mesos
Introduction to Apache Mesostomasbart
25.8K views59 slides

More Related Content

What's hot

Docker and kubernetes by
Docker and kubernetesDocker and kubernetes
Docker and kubernetesDongwon Kim
5.6K views33 slides
Mesos vs kubernetes comparison by
Mesos vs kubernetes comparisonMesos vs kubernetes comparison
Mesos vs kubernetes comparisonKrishna-Kumar
5.5K views13 slides
Container Orchestration @Docker Meetup Hamburg by
Container Orchestration @Docker Meetup HamburgContainer Orchestration @Docker Meetup Hamburg
Container Orchestration @Docker Meetup HamburgTimo Derstappen
3.4K views31 slides
A brief study on Kubernetes and its components by
A brief study on Kubernetes and its componentsA brief study on Kubernetes and its components
A brief study on Kubernetes and its componentsRamit Surana
5.8K views34 slides
Docker, Mesos, Spark by
Docker, Mesos, Spark Docker, Mesos, Spark
Docker, Mesos, Spark Qiang Wang
908 views14 slides
Multi-Container Apps spanning Docker, Mesos and OpenStack by
Multi-Container Apps spanning Docker, Mesos and OpenStackMulti-Container Apps spanning Docker, Mesos and OpenStack
Multi-Container Apps spanning Docker, Mesos and OpenStackDocker, Inc.
1.8K views31 slides

What's hot(20)

Docker and kubernetes by Dongwon Kim
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
Dongwon Kim5.6K views
Mesos vs kubernetes comparison by Krishna-Kumar
Mesos vs kubernetes comparisonMesos vs kubernetes comparison
Mesos vs kubernetes comparison
Krishna-Kumar 5.5K views
Container Orchestration @Docker Meetup Hamburg by Timo Derstappen
Container Orchestration @Docker Meetup HamburgContainer Orchestration @Docker Meetup Hamburg
Container Orchestration @Docker Meetup Hamburg
Timo Derstappen3.4K views
A brief study on Kubernetes and its components by Ramit Surana
A brief study on Kubernetes and its componentsA brief study on Kubernetes and its components
A brief study on Kubernetes and its components
Ramit Surana5.8K views
Docker, Mesos, Spark by Qiang Wang
Docker, Mesos, Spark Docker, Mesos, Spark
Docker, Mesos, Spark
Qiang Wang908 views
Multi-Container Apps spanning Docker, Mesos and OpenStack by Docker, Inc.
Multi-Container Apps spanning Docker, Mesos and OpenStackMulti-Container Apps spanning Docker, Mesos and OpenStack
Multi-Container Apps spanning Docker, Mesos and OpenStack
Docker, Inc.1.8K views
Package your Java EE Application using Docker and Kubernetes by Arun Gupta
Package your Java EE Application using Docker and KubernetesPackage your Java EE Application using Docker and Kubernetes
Package your Java EE Application using Docker and Kubernetes
Arun Gupta27.1K views
Crossing the Streams Mesos <> Kubernetes by Timothy St. Clair
Crossing the Streams Mesos <> KubernetesCrossing the Streams Mesos <> Kubernetes
Crossing the Streams Mesos <> Kubernetes
Timothy St. Clair2.7K views
Monitoring microservices: Docker, Mesos and Kubernetes visibility at scale by Alessandro Gallotta
Monitoring microservices: Docker, Mesos and Kubernetes visibility at scaleMonitoring microservices: Docker, Mesos and Kubernetes visibility at scale
Monitoring microservices: Docker, Mesos and Kubernetes visibility at scale
Cluster management with Kubernetes by Satnam Singh
Cluster management with KubernetesCluster management with Kubernetes
Cluster management with Kubernetes
Satnam Singh9.1K views
Building and deploying a distributed application with Docker, Mesos and Marathon by Julia Mateo
Building and deploying a distributed application with Docker, Mesos and MarathonBuilding and deploying a distributed application with Docker, Mesos and Marathon
Building and deploying a distributed application with Docker, Mesos and Marathon
Julia Mateo2.2K views
Containers orchestrators: Docker vs. Kubernetes by Dmitry Lazarenko
Containers orchestrators: Docker vs. KubernetesContainers orchestrators: Docker vs. Kubernetes
Containers orchestrators: Docker vs. Kubernetes
Dmitry Lazarenko3.4K views
Kubernetes on Top of Mesos on Top of DCOS by Stefan Schimanski
Kubernetes on Top of Mesos on Top of DCOSKubernetes on Top of Mesos on Top of DCOS
Kubernetes on Top of Mesos on Top of DCOS
Stefan Schimanski3.5K views
Kubernetes and CoreOS @ Athens Docker meetup by Mist.io
Kubernetes and CoreOS @ Athens Docker meetupKubernetes and CoreOS @ Athens Docker meetup
Kubernetes and CoreOS @ Athens Docker meetup
Mist.io4.1K views
KubeCon CloudNativeCon 2016 Seattle - a report by Krishna-Kumar
KubeCon CloudNativeCon 2016 Seattle - a reportKubeCon CloudNativeCon 2016 Seattle - a report
KubeCon CloudNativeCon 2016 Seattle - a report
Krishna-Kumar 464 views
Docker, Kubernetes, and Google Cloud by Samuel Chow
Docker, Kubernetes, and Google CloudDocker, Kubernetes, and Google Cloud
Docker, Kubernetes, and Google Cloud
Samuel Chow1.1K views
Scaling Docker with Kubernetes by Carlos Sanchez
Scaling Docker with KubernetesScaling Docker with Kubernetes
Scaling Docker with Kubernetes
Carlos Sanchez14.8K views
K8scale update-kubecon2015 by Bob Wise
K8scale update-kubecon2015K8scale update-kubecon2015
K8scale update-kubecon2015
Bob Wise517 views
Platform as a Service with Kubernetes and Mesos by Miguel Zuniga
Platform as a Service with Kubernetes and Mesos Platform as a Service with Kubernetes and Mesos
Platform as a Service with Kubernetes and Mesos
Miguel Zuniga3.1K views

Viewers also liked

An Introduction to Kubernetes by
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to KubernetesImesh Gunaratne
54.5K views27 slides
Container Orchestration Wars by
Container Orchestration WarsContainer Orchestration Wars
Container Orchestration WarsKarl Isenberg
14.2K views63 slides
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1 by
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Etsuji Nakai
15.6K views23 slides
Docker introduction by
Docker introductionDocker introduction
Docker introductiondotCloud
455.8K views29 slides
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs... by
Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...Nati Shalom
85.2K views77 slides
Using machine learning to determine drivers of bounce and conversion by
Using machine learning to determine drivers of bounce and conversionUsing machine learning to determine drivers of bounce and conversion
Using machine learning to determine drivers of bounce and conversionTammy Everts
5.5K views36 slides

Viewers also liked(20)

An Introduction to Kubernetes by Imesh Gunaratne
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
Imesh Gunaratne54.5K views
Container Orchestration Wars by Karl Isenberg
Container Orchestration WarsContainer Orchestration Wars
Container Orchestration Wars
Karl Isenberg14.2K views
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1 by Etsuji Nakai
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Etsuji Nakai15.6K views
Docker introduction by dotCloud
Docker introductionDocker introduction
Docker introduction
dotCloud455.8K views
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs... by Nati Shalom
Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
Nati Shalom85.2K views
Using machine learning to determine drivers of bounce and conversion by Tammy Everts
Using machine learning to determine drivers of bounce and conversionUsing machine learning to determine drivers of bounce and conversion
Using machine learning to determine drivers of bounce and conversion
Tammy Everts5.5K views
Introduction to Kubernetes by rajdeep
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
rajdeep46.7K views
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup by Stefan Schimanski
Kubernetes Architecture and Introduction – Paris Kubernetes MeetupKubernetes Architecture and Introduction – Paris Kubernetes Meetup
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup
Stefan Schimanski5.5K views
Kubernetes Networking by CJ Cullen
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
CJ Cullen26.7K views
A Gentle Introduction To Docker And All Things Containers by Jérôme Petazzoni
A Gentle Introduction To Docker And All Things ContainersA Gentle Introduction To Docker And All Things Containers
A Gentle Introduction To Docker And All Things Containers
Jérôme Petazzoni60.6K views
Scaling Jenkins with Docker and Kubernetes by Carlos Sanchez
Scaling Jenkins with Docker and KubernetesScaling Jenkins with Docker and Kubernetes
Scaling Jenkins with Docker and Kubernetes
Carlos Sanchez11.6K views
Datacenter Computing with Apache Mesos - BigData DC by Paco Nathan
Datacenter Computing with Apache Mesos - BigData DCDatacenter Computing with Apache Mesos - BigData DC
Datacenter Computing with Apache Mesos - BigData DC
Paco Nathan27.5K views
Docker and Go: why did we decide to write Docker in Go? by Jérôme Petazzoni
Docker and Go: why did we decide to write Docker in Go?Docker and Go: why did we decide to write Docker in Go?
Docker and Go: why did we decide to write Docker in Go?
Jérôme Petazzoni187.5K views
Container Orchestration Wars (Micro Edition) by Karl Isenberg
Container Orchestration Wars (Micro Edition)Container Orchestration Wars (Micro Edition)
Container Orchestration Wars (Micro Edition)
Karl Isenberg2.2K views
Understanding Kubernetes by Tu Pham
Understanding KubernetesUnderstanding Kubernetes
Understanding Kubernetes
Tu Pham1.9K views
Achieving CI/CD with Kubernetes by Ramit Surana
Achieving CI/CD with KubernetesAchieving CI/CD with Kubernetes
Achieving CI/CD with Kubernetes
Ramit Surana48.8K views
fabric8 ... and Docker, Kubernetes & OpenShift by roland.huss
fabric8 ... and Docker, Kubernetes & OpenShiftfabric8 ... and Docker, Kubernetes & OpenShift
fabric8 ... and Docker, Kubernetes & OpenShift
roland.huss9.6K views
Mesos and containers by Jiang Yan Xu
Mesos and containersMesos and containers
Mesos and containers
Jiang Yan Xu3.8K views
Introduction to Kubernetes - Docker Global Mentor Week 2016 by Opsta
Introduction to Kubernetes - Docker Global Mentor Week 2016Introduction to Kubernetes - Docker Global Mentor Week 2016
Introduction to Kubernetes - Docker Global Mentor Week 2016
Opsta1.9K views

Similar to Musings on Mesos: Docker, Kubernetes, and Beyond.

Apache Mesos Overview and Integration by
Apache Mesos Overview and IntegrationApache Mesos Overview and Integration
Apache Mesos Overview and IntegrationAlex Baretto
595 views33 slides
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage by
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageMayaData Inc
524 views26 slides
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg Schad by
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg SchadOSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg Schad
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg SchadNETWAYS
93 views47 slides
Microservices, Containers and Docker by
Microservices, Containers and DockerMicroservices, Containers and Docker
Microservices, Containers and DockerIoannis Papapanagiotou
2.6K views54 slides
Choosing PaaS: Cisco and Open Source Options: an overview by
Choosing PaaS:  Cisco and Open Source Options: an overviewChoosing PaaS:  Cisco and Open Source Options: an overview
Choosing PaaS: Cisco and Open Source Options: an overviewCisco DevNet
1.4K views21 slides
Introduction to Apache Mesos and DC/OS by
Introduction to Apache Mesos and DC/OSIntroduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OSSteve Wong
339 views44 slides

Similar to Musings on Mesos: Docker, Kubernetes, and Beyond.(20)

Apache Mesos Overview and Integration by Alex Baretto
Apache Mesos Overview and IntegrationApache Mesos Overview and Integration
Apache Mesos Overview and Integration
Alex Baretto595 views
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage by MayaData Inc
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
MayaData Inc524 views
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg Schad by NETWAYS
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg SchadOSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg Schad
OSDC 2016 - Mesos and the Architecture of the New Datacenter by Jörg Schad
NETWAYS93 views
Choosing PaaS: Cisco and Open Source Options: an overview by Cisco DevNet
Choosing PaaS:  Cisco and Open Source Options: an overviewChoosing PaaS:  Cisco and Open Source Options: an overview
Choosing PaaS: Cisco and Open Source Options: an overview
Cisco DevNet1.4K views
Introduction to Apache Mesos and DC/OS by Steve Wong
Introduction to Apache Mesos and DC/OSIntroduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OS
Steve Wong339 views
Introduction to containers, k8s, Microservices & Cloud Native by Terry Wang
Introduction to containers, k8s, Microservices & Cloud NativeIntroduction to containers, k8s, Microservices & Cloud Native
Introduction to containers, k8s, Microservices & Cloud Native
Terry Wang142 views
Docker-N-Beyond by santosh007
Docker-N-BeyondDocker-N-Beyond
Docker-N-Beyond
santosh007541 views
Doing Dropbox the Native Cloud Native Way by Minio
Doing Dropbox the Native Cloud Native WayDoing Dropbox the Native Cloud Native Way
Doing Dropbox the Native Cloud Native Way
Minio696 views
Kubernetes solutions by Eric Cattoir
Kubernetes solutionsKubernetes solutions
Kubernetes solutions
Eric Cattoir615 views
Containerizing couchbase with microservice architecture on mesosphere.pptx by Ravi Yadav
Containerizing couchbase with microservice architecture on mesosphere.pptxContainerizing couchbase with microservice architecture on mesosphere.pptx
Containerizing couchbase with microservice architecture on mesosphere.pptx
Ravi Yadav159 views
An Updated Performance Comparison of Virtual Machines and Linux Containers by Kento Aoyama
An Updated Performance Comparison of Virtual Machines and Linux ContainersAn Updated Performance Comparison of Virtual Machines and Linux Containers
An Updated Performance Comparison of Virtual Machines and Linux Containers
Kento Aoyama2.4K views
Containers in depth – Understanding how containers work to better work with c... by All Things Open
Containers in depth – Understanding how containers work to better work with c...Containers in depth – Understanding how containers work to better work with c...
Containers in depth – Understanding how containers work to better work with c...
All Things Open214 views
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ... by Anant Corporation
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...
Anant Corporation261 views
Weave User Group Talk - DockerCon 2017 Recap by Patrick Chanezon
Weave User Group Talk - DockerCon 2017 RecapWeave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 Recap
Patrick Chanezon2.9K views
Difference between .net core and .net framework by Ansi Bytecode
Difference between .net core and .net frameworkDifference between .net core and .net framework
Difference between .net core and .net framework
Ansi Bytecode241 views
Introduction to Kubernetes by Vishal Biyani
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
Vishal Biyani601 views
How to build an HA container orchestrator infrastructure for production – Giu... by Codemotion
How to build an HA container orchestrator infrastructure for production – Giu...How to build an HA container orchestrator infrastructure for production – Giu...
How to build an HA container orchestrator infrastructure for production – Giu...
Codemotion678 views

Recently uploaded

Software testing company in India.pptx by
Software testing company in India.pptxSoftware testing company in India.pptx
Software testing company in India.pptxSakshiPatel82
7 views9 slides
Roadmap y Novedades de producto by
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de productoNeo4j
43 views33 slides
Consulting for Data Monetization Maximizing the Profit Potential of Your Data... by
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...Consulting for Data Monetization Maximizing the Profit Potential of Your Data...
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...Flexsin
15 views10 slides
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023 by
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023Upgrading Incident Management with Icinga - Icinga Camp Milan 2023
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023Icinga
36 views17 slides
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - Parker by
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - ParkerDSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - Parker
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - ParkerDeltares
8 views16 slides
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)... by
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...Deltares
9 views34 slides

Recently uploaded(20)

Software testing company in India.pptx by SakshiPatel82
Software testing company in India.pptxSoftware testing company in India.pptx
Software testing company in India.pptx
SakshiPatel827 views
Roadmap y Novedades de producto by Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j43 views
Consulting for Data Monetization Maximizing the Profit Potential of Your Data... by Flexsin
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...Consulting for Data Monetization Maximizing the Profit Potential of Your Data...
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...
Flexsin 15 views
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023 by Icinga
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023Upgrading Incident Management with Icinga - Icinga Camp Milan 2023
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023
Icinga36 views
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - Parker by Deltares
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - ParkerDSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - Parker
DSD-INT 2023 SFINCS Modelling in the U.S. Pacific Northwest - Parker
Deltares8 views
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)... by Deltares
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
Deltares9 views
Applying Platform Engineering Thinking to Observability.pdf by Natan Yellin
Applying Platform Engineering Thinking to Observability.pdfApplying Platform Engineering Thinking to Observability.pdf
Applying Platform Engineering Thinking to Observability.pdf
Natan Yellin12 views
Dev-Cloud Conference 2023 - Continuous Deployment Showdown: Traditionelles CI... by Marc Müller
Dev-Cloud Conference 2023 - Continuous Deployment Showdown: Traditionelles CI...Dev-Cloud Conference 2023 - Continuous Deployment Showdown: Traditionelles CI...
Dev-Cloud Conference 2023 - Continuous Deployment Showdown: Traditionelles CI...
Marc Müller31 views
Geospatial Synergy: Amplifying Efficiency with FME & Esri ft. Peak Guest Spea... by Safe Software
Geospatial Synergy: Amplifying Efficiency with FME & Esri ft. Peak Guest Spea...Geospatial Synergy: Amplifying Efficiency with FME & Esri ft. Peak Guest Spea...
Geospatial Synergy: Amplifying Efficiency with FME & Esri ft. Peak Guest Spea...
Safe Software391 views
What Can Employee Monitoring Software Do?​ by wAnywhere
What Can Employee Monitoring Software Do?​What Can Employee Monitoring Software Do?​
What Can Employee Monitoring Software Do?​
wAnywhere18 views
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... by Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares10 views
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan... by Deltares
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...
Deltares10 views
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ... by Donato Onofri
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Donato Onofri643 views
El Arte de lo Possible by Neo4j
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo Possible
Neo4j34 views
Neo4j : Graphes de Connaissance, IA et LLMs by Neo4j
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j : Graphes de Connaissance, IA et LLMs
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j46 views
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra... by Marc Müller
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra....NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
Marc Müller35 views
Software evolution understanding: Automatic extraction of software identifier... by Ra'Fat Al-Msie'deen
Software evolution understanding: Automatic extraction of software identifier...Software evolution understanding: Automatic extraction of software identifier...
Software evolution understanding: Automatic extraction of software identifier...
Cycleops - Automate deployments on top of bare metal.pptx by Thanassis Parathyras
Cycleops - Automate deployments on top of bare metal.pptxCycleops - Automate deployments on top of bare metal.pptx
Cycleops - Automate deployments on top of bare metal.pptx
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema by Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - GeertsemaDSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
Deltares12 views

Musings on Mesos: Docker, Kubernetes, and Beyond.

  • 1. Musings on Mesos: Docker, Kubernetes, and Beyond Timothy St. Clair @timothysc Mesos committer and PMC member 11/19/2014 INTERNAL ONLY
  • 2. Audience Poll - Mesos ● I have ... 1. Only heard talks about Mesos, nothing more. 2. Played with Mesos on a sample cluster, initial POC. 3. Have a Mesos cluster in a production environment 4. DUDE.!.! I wrote a custom Mesos framework in Haskell before breakfast Bro ... INTERNAL ONLY
  • 3. Quick Overview – Mesos 101 Condensed At its core, Mesos is a focused, scalable, two-phased meta-scheduler that provides primitives to express a wide variety of scheduling patterns and use cases. Solutions are written atop of Mesos as frameworks. Frameworks are targeted for a particular use case, and maintain domain specific information. By remaining focused at its core, Mesos is not architecturally encumbered by domain specific problems that often exist in other monolithic schedulers. INTERNAL ONLY
  • 4. The Response I Always Hope For INTERNAL ONLY
  • 6. 101 Unpacking: Meta-Scheduling? At its core, Mesos is a focused, scalable, meta-scheduler that provides primitives to express a wide variety of scheduling patterns and use cases. ● It means that Mesos enables other distributed applications to define their own scheduling policies, with an core algorithm (DRF) to share resources across those applications. ● Mesos can run on 1-O(10^4) nodes. So, it is a scheduler... that allows distributed applications to share resources in a cluster. INTERNAL ONLY
  • 7. 101 Unpacking: frameworks? Solutions are written atop of Mesos as frameworks, and are targeted for a particular use case. ● Framework = distributed application = scheduler ● Framework could be anything from batch, application, or micro-service scheduling. INTERNAL ONLY
  • 8. 101 Unpacking: Architecturally Encumbered? Mesos is not architecturally encumbered by domain specific problems that often exist within other monolithic schedulers. ● Mesos does not subsume domain specific problems, that is a frameworks job. INTERNAL ONLY ● Service scheduling ● Fault tolerance ● Load balancing ● Discovery ● Batch Scheduling ● Quotas (user/group) ● Limits
  • 9. 101 Motivation: New Reality ● New applications need to be: ● Fault tolerant (Withstand failure) ● Scalable (Not crumble under it's own weight) ● Elastic (Can grow and shrink based on demand) ● Multi-tenent (It can't have it's own dedicated cluster) ● Must play nice with the other kids. ● So what does that really mean? INTERNAL ONLY
  • 10. 101 Motivation: Distributed Application ● “There's Just No Getting Around It: You're Building a Distributed System” Mark INTERNAL ONLY Cavage ● queue.acm.org/detail.cfm?id=2482856 ● Key takeaways on architecture: ● Decompose the business applications into discrete services on the boundaries of fault domains, scaling, and data workload. ● Make as many things as possible stateless ● When dealing with state, deeply understand CAP, latency, throughput, and durability requirements. “Without practical experience working on successful—and failed—systems, most engineers take a "hopefully it works" approach and attempt to string together off-the-shelf software, whether open source or commercial, and often are unsuccessful at building a resilient, performant system. In reality, building a distributed system requires a methodical approach to requirements along the boundaries of failure domains, latency, throughput, durability, consistency, and desired SLAs for the business application at all aspects of the application.”
  • 11. 101 Summary : Distributed Systems Kernel Cluster Manager (google-ism) ● Mesos is built using the same principles as the Linux kernel, only at a different level of abstraction. “We wanted people to be able to program for the data-center just like they program for their laptop” ~ Ben INTERNAL ONLY Hindman ● Computer : Data-center ● Kernel : Mesos ● Application : Distributed application ● Operating System : (Mesos+Frameworks+ Ecosystem)
  • 12. So Having a Kernel for Distributed Systems Makes a Lot of Sense.?.? ¯_(ツ)_/¯ INTERNAL ONLY
  • 13. Mesos @ 50K http://mesos.apache.org/documentation/latest/mesos-frameworks/ MPI Hadoop Spark Storm INTERNAL ONLY Workloads Kernel batch services Frameworks Marathon Kubernetes Aurora distributed file system DFS distributed resources: CPU, RAM, I/O, FS, rack locality, etc. Cluster
  • 14. Audience Poll - Docker ● I have ... 1. Only heard talks/news about Docker. 2. Played with Docker and use it on a single host. 3. Have Docker running in a production cluster. 4.DUDE.!.! I've ran 300 Million containers last month. INTERNAL ONLY
  • 15. Docker Docker Docker ●Combination of technologies ● cgroups + namespaces + image format + lifecycle management + application virtualization ●Git like semantics around image building INTERNAL ONLY ● pull, commit, push ... ● Application virtualization ● Native Speeds ● >> Density the virtual machines
  • 16. The 'Holy Grail' of Clustering ● Provide maximum application density per-machine (currently in the hundreds). INTERNAL ONLY ● >> Then virtualization ● Improved 'application namespace' isolation across your cluster ● No longer need to ensure stacks | sub-stacks are rolled onto your cluster. ● Enables multiple versions across a cluster easily ●Combined with clustering, it can obviate traditional 'deployment problems'
  • 18. Reality Docker 90% of the things, but that last 10% of things may require super-privileged INTERNAL ONLY containers, where the container has full access to the system and that gets kind of funky because then you could have dependency leakage... and potentially a host of other versioning issues. And uhhhhhhh..
  • 19. Reality ● The last 10% ● Applications that want or need to load custom kernel drivers. ● Low level system applications (namespaces) ● Cluster managers, such as Mesos which leverage namespaces. INTERNAL ONLY
  • 20. Reality ● Networking is thorny, with many solutions O(10^2) ● Pipework ● Flannel ● Weave ● vSwitch ● What happens when density is on the order 1000's. ● What happens if you wanted to have a density on the order of 10,000+. INTERNAL ONLY
  • 21. 10,000+ .?.? ● What is the average utilization of your data center? ● Twitter & Google run between 20-30% (Quasar paper) ● “ 640K ought to be enough for anybody.” - B.Gates. INTERNAL ONLY
  • 23. (Apache Infra) “What if.... There Were Official Apache Repositories on Docker-Hub.” INTERNAL ONLY
  • 24. Mesos and Docker Integration "If a Docker application is a Lego brick, Kubernetes would be like a kit for building the Millennium Falcon and the Mesos cluster would be like a whole Star Wars universe made of Legos." ~ Solomon INTERNAL ONLY ● 1st classed in 0.20 ● A lot of feedback and updated 0.21 (soon-ish) ● Service Scheduling ● Marathon + HA-Proxy + Docker – 10^4 ● Kubernetes (WIP) ● Batch ● Spark (https://issues.apache.org/jira/browse/SPARK-2691) ● Chronos
  • 25. Mesos and Docker Use Cases ● Elastic applications in a shared multi-tenant environment RAILS Memcached Spark 100% 75% 50% 25% Graphic Courtesy of Paco Nathan INTERNAL ONLY 100% 75% 50% 25% 0% 100% 75% 50% 25% 0% 0% tt 100% 75% 50% 25% 0%
  • 26. Can I Write My Own Framework That Uses Docker? INTERNAL ONLY ● YES! ● Mesos has 1st class Docker support, by providing an API DockerInfo {} ● BUT... ● Writing a framework in development is relatively easy ● Writing an application that is highly available, scales well, can be difficult. ● HOPE ● Creation of higher order libraries (libc) to help make it easier to create frameworks.
  • 27. Can you run Mesos from a Docker Container? ● Current State – sort of. ● mesos-master ● Using bridged networking you can easily run a HA configuration ● mesos-slave ● mesos requires low level system access which makes it difficult to put in a container and maintain full feature parity ● TBD with super privileged containers INTERNAL ONLY
  • 28. How are we doing? ¯_(ツ)_/¯ INTERNAL ONLY
  • 29. Audience Poll - Kubernetes ● I have ... 1. Only heard talks/news about kubernetes. 2. Played with kubernetes and use it on a single host. 3. Have kubernetes running on GCE. INTERNAL ONLY
  • 30. Kubernetes (WIP) ● Kubernetes is a system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications. Its APIs are intended to serve as the foundation for an open ecosystem of tools, automation systems, and higher-level API layers. ● Kubernetes establishes robust declarative primitives for maintaining the desired state requested by the user. These primitives are the main value added by Kubernetes. INTERNAL ONLY ● pre-production beta.
  • 31. Kubernetes ● Pods are the atom of scheduling, and are a group of containers that are scheduled onto the same host. ● Pods facilitate data sharing and communication. INTERNAL ONLY ● Shared mount point ● Shared network namespace/IP and port space ● Higher order abstraction to the low level interface of containers ● Composable micro-services
  • 32. Kubernetes – pod.json INTERNAL ONLY { "apiVersion": "v1beta1", "kind": "Pod", "id": "redis-master-pod", "desiredState": { "manifest": { "version": "v1beta1", "id": "redis-master-pod", "containers": [{ "name": "redis-master", "image": "gurpartap/redis", "ports": [{ "name": "redis-server", "containerPort": 6379 }] ... + labels
  • 33. Kubernetes framework for Mesos (WIP) ● 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. ● Provide advanced scheduling capabilities (grouping, spreading ...) INTERNAL ONLY ● Availability zone fail-over ● Elasticity – Scale up and down kublets ● MORE TO COME...
  • 34. Kubernetes vs. Mesos? INTERNAL ONLY ● Not at all! ● Kubernetes is an opinionated declarative model on how to address micro-services ● Mesos provides an imperative framework by which application developers can define scheduling policy in a programmatic fashion. ● When leveraged together it provides a data-center with the ability to both.
  • 35. Kubernetes - Mesos = Static Provisioning Spark Kubernetes INTERNAL ONLY
  • 36. Hows your social media updates? #Mesos + #ApacheCon FTW ¯_(ツ)_/¯ INTERNAL ONLY
  • 38. Mesos, Docker, and Kubernetes are Still Very Young. Expect change... INTERNAL ONLY
  • 39. 1st Classing PODS into Docker Core ● https://github.com/docker/docker/pull/8859 ● Make a POD become the fundamental unit of abstraction ● Make the Container (Letter), while the POD (Envelope), Clustering becomes the mail service. ● Problem – Most user have no idea what a POD is ● Answer - They don't really need to, it could likely be hidden or renamed. INTERNAL ONLY
  • 40. Docker Clustering ● https://github.com/docker/docker/pull/8859 ● Clustering will be done via a plugin whose API is TBD but due out later... ● The Docker CLI is meant to be the primary interface to support Docker clustering, and the plugin will extend the CLI via options (TBD). e.g. --constraints=TBD ● Kubernetes, Mesos, or possibly Marathon, could be added as a back end via the plugin API. ● Any concepts, such as 1st classing PODs is a docker-core constraint. INTERNAL ONLY
  • 41. Native Docker Multi-Host Networking ● https://github.com/docker/docker/issues/8951 ● The power of Docker is its simplicity, yet it scales to the demands of hyper-scale deployments. The same cannot be said today for the native networking solution in Docker. This proposal aims to bridge that gap. The intent is to implement a production-ready reliable multi-host networking solutions that is native to Docker while remaining laser focused on the user friendly needs of the developers environment that is at the heart of the Docker transformation. INTERNAL ONLY ● Programmable vSwitch
  • 42. Hand Wavy - Future of a Kubernetes Framework atop Mesos ●Drive towards parity with google cluster management tools #GCELive. ● Elastic model around micro-services ● If (ServiceX.cpuload>80) then; Mesos.addMoreCapacity() ● Workload migration and maintenance. ● Offload nodes for maintenance. INTERNAL ONLY ● Resize and defrag.
  • 43. What Does This Mean for Mesos ● Integration changes on the horizon ● Internal container handling. ● Framework API – DockerInfo {}, will likely change ● Docker CLI could be used to drive containers on a Mesos cluster. ● Mesos mantra continues unabated: “Multiple models all supported by one common infrastructure” ● Multiple service models (Marathon, Kubernetes, Aurora) ● Multiple batch models (Spark, Chronos) INTERNAL ONLY
  • 44. BUT WAIT! THERES MORE On the Horizon – Core Mesos Features ● Primitives to support stateful services (HDFS, Cassandra, etc.) INTERNAL ONLY ● Persistent disk data ● Lazy resource reservation ● Expanded Disk Isolation ● I/O ● FS/Mount namespace ● Support multiple spindles ● Dynamic slave attributes
  • 45. Mesos and the Surrounding Ecosystem as an Operating System. ● Just getting started, first #MesosCon (Aug) ● Even though Mesos (kernel) has matured @ Twitter, it is still very early on. ● We are still in the very early stages for both Docker and Kubernetes. INTERNAL ONLY
  • 46. THANK YOU! @timothysc INTERNAL ONLY