SlideShare ist ein Scribd-Unternehmen logo
1 von 60
Downloaden Sie, um offline zu lesen
Mesos: 
The 
Datacenter 
Opera1ng 
System 
David 
Greenberg 
Two 
Sigma
Who 
am 
I? 
• Architected 
project 
to 
build 
a 
massive 
Mesos 
cluster 
• Building 
custom 
framework 
and 
leveraging 
open 
source
The 
Plan 
What 
is 
Mesos? 
How 
can 
I 
use 
Mesos? 
How 
can 
I 
build 
on 
Mesos?
What 
is 
Mesos?
A 
long 
1me 
ago… 
Are 
you 
done 
with 
the 
machine? 
I 
need 
to 
load 
my 
cards. 
Lol 
no; 
maybe 
tomorrow.
1957 
Oh 
man! 
Let’s 
all 
share 
the 
computer, 
AT 
THE 
SAME 
TIME! 
John 
McCarthy 
Popularized 
Timesharing
A 
long 
1me 
ago… 
Are 
you 
done 
with 
the 
Hadoop 
cluster? 
I 
need 
to 
run 
my 
analy1cs 
job. 
Lol 
no; 
maybe 
tomorrow.
2010 
Oh 
man! 
Let’s 
all 
share 
the 
cluster, 
AT 
THE 
SAME 
TIME! 
Ben 
Hindman 
Popularized 
Mesos
Good 
ideas 
today 
mirror 
good 
ideas 
of 
yesteryear
Mesos: 
an 
Opera1ng 
System
Isola1on
Resource 
Sharing
Common 
Infrastructure 
• read(), 
write(), 
open() 
• bind(), 
connect() 
• apt-­‐get, 
yum 
• launchTask(), 
killTask(), 
statusUpdate() 
• Docker
Distributed 
System* 
Anatomy 
Workers 
Coordinator 
* 
Excluding 
peer-­‐to-­‐peer 
systems
Sta1c 
Par11oning 
Coordinator 
(Hadoop) 
Coordinator 
(Storm)
Mesos: 
a 
Level 
of 
Indirec1on 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master) 
Coordinator
Mesos: 
a 
Level 
of 
Indirec1on 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master) 
Coordinator
Mesos: 
a 
Level 
of 
Indirec1on 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master) 
Coordinator
Mesos: 
a 
Level 
of 
Indirec1on 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master) 
Coordinator
Mesos: 
a 
Level 
of 
Indirec1on 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master) 
Coordinator
Coordina1ng 
Execu1on 
≈ 
Scheduling
s/Coordinator/Scheduler/ 
Mesos 
(slaves) 
Coordinator 
Mesos 
(master)
s/Coordinator/Scheduler/ 
Mesos 
(slaves) 
Scheduler 
Mesos 
(master)
Apache 
Hadoop 
Mesos 
(slaves) 
JobTracker 
(Scheduler) 
Mesos 
(master)
Distributed 
System 
≈ 
(Mesos) 
framework
a 
Mesos 
framework 
is 
a 
distributed 
system 
that 
has 
a 
coordinator
a 
Mesos 
framework 
is 
a 
distributed 
system 
that 
has 
a 
coordinator
a 
Mesos 
framework 
is 
a 
distributed 
system 
that 
has 
a 
scheduler 
a
a 
Mesos 
framework 
is 
an 
app 
for 
your 
cluster
How 
can 
I 
use 
Mesos?
Tons 
of 
Flexibility!
Jenkins 
• Con1nuous 
build 
server 
• Just 
install 
a 
plugin!
Hadoop 
• Mul1-­‐cluster 
isola1on 
• Fast 
startup 
• Just 
run 
the 
repacked 
Cloudera 
CDH 
4.2.1 
MR1 
distribu1on 
for 
Mesos
Marathon 
• PaaS 
on 
Mesos 
• init.d 
for 
the 
cluster 
• Docker 
support 
• Scales 
at 
the 
click 
of 
a 
budon 
• Manages 
edge 
routers 
-­‐ 
HAProxy
Chronos 
• Distributed 
cron 
• Supports 
job 
dependencies 
• REST 
API
Aurora 
• Advanced 
PaaS 
on 
Mesos 
• Powers 
Twider 
• Supports 
phased 
rollouts 
• Supports 
complex 
deployments
Spark 
• In 
memory 
Map 
Reduce, 
built 
for 
“Medium 
Data” 
• Supports 
SQL 
as 
well 
as 
Java, 
Python, 
and 
Scala 
• Designed 
for 
interac1ve 
analysis 
via 
REPL
How 
do 
I 
use 
these? 
• Free 
online 
interac1ve 
tutorials! 
– hdp://mesosphere.io/learn 
• Covers 
all 
of 
the 
previously 
men1oned 
and 
many 
more
How 
can 
I 
build 
on 
Mesos?
Cluster 
Manager 
Status 
Quo 
Applica?on/Human 
Specifica1on 
Cluster 
Manager 
The 
specifica1on 
includes 
as 
much 
informa1on 
as 
possible 
to 
assist 
the 
cluster 
manager 
in 
scheduling 
and 
execu1on
Cluster 
Manager 
Status 
Quo 
Applica?on/Human 
Cluster 
Manager 
Wait 
for 
task 
to 
be 
executed
Cluster 
Manager 
Status 
Quo 
Applica?on/Human 
Result 
Cluster 
Manager
Problems 
with 
Specifica1ons 
① Hard 
to 
specify 
certain 
desires 
or 
constraints 
② Hard 
to 
update 
specifica1ons 
dynamically 
as 
tasks 
execute 
and 
finish/fail
An 
Alterna1ve 
Model 
Scheduler 
Mesos 
request 
3 
CPUs 
2 
GB 
RAM 
• A 
request 
is 
purposely 
simplified 
subset 
of 
a 
specifica1on 
• It 
is 
just 
the 
required 
resources 
at 
that 
point 
in 
)me
What 
should 
you 
do 
if 
you 
can’t 
sa1sfy 
a 
request?
What 
should 
you 
do 
if 
you 
can’t 
sa1sfy 
a 
request? 
① 
Wait 
un?l 
you 
can 
…
What 
should 
you 
do 
if 
you 
can’t 
sa1sfy 
a 
request? 
① 
Wait 
un?l 
you 
can 
… 
② 
Offer 
best 
you 
can 
immediately
What 
should 
you 
do 
if 
you 
can’t 
sa1sfy 
a 
request? 
① 
Wait 
un?l 
you 
can 
… 
② 
Offer 
best 
you 
can 
immediately
Mesos 
Model 
Scheduler 
Mesos 
offer 
hostname 
4 
CPUs 
4 
GB 
RAM 
• Resources 
are 
allocated 
via 
resource 
offers 
• A 
resource 
offer 
represents 
a 
snapshot 
of 
available 
resources 
that 
a 
scheduler 
can 
use 
to 
run 
tasks
An 
Analogue: 
non-­‐blocking 
sockets 
Applica?on 
Kernel 
write(s, buffer, size);!
An 
Analogue: 
non-­‐blocking 
sockets 
Applica?on 
Kernel 
42 of 100 bytes written!!
Mesos 
Model 
offer 
hostname 
4 
CPUs 
4 
GB 
RAM 
offer 
hostname 
4 
CPUs 
4 
GB 
RAM 
offer 
hostname 
4 
CPUs 
4 
GB 
RAM 
Scheduler 
Mesos 
offer 
hostname 
4 
CPUs 
4 
GB 
RAM 
Scheduler 
uses 
the 
offers 
to 
decide 
what 
tasks 
to 
run
Mesos 
Model 
Scheduler 
Mesos 
Scheduler 
uses 
the 
offers 
to 
decide 
what 
tasks 
to 
run 
“Two-­‐level 
scheduling” 
task 
3 
CPUs 
2 
GB 
RAM
Two-­‐level 
Scheduling 
• Mesos: 
controls 
resource 
alloca+ons 
to 
schedulers 
• Schedulers: 
make 
decisions 
about 
what 
tasks 
to 
run 
given 
allocated 
resources
Two-­‐level 
Scheduling 
Elsewhere 
• Mesos 
influenced 
by 
opera1ng 
system 
supported 
user-­‐space 
scheduling 
– E.g. 
green 
threads, 
gorou1nes 
• Mesos 
is 
designed 
less 
like 
a 
“cluster 
manager” 
and 
more 
like 
an 
opera1ng 
system 
(or 
kernel)
Language 
Bindings
Should 
I 
build 
it 
on 
Mesos? 
• Theme 
of 
MesosCon: 
it’s 
easy 
to 
build 
frameworks 
• Open 
source 
and 
proprietary 
frameworks 
are 
being 
created 
all 
the 
1me 
– Two 
Sigma 
– Neplix 
– Twider 
– Hubspot
But 
should 
I 
really 
build 
it 
on 
Mesos? 
• Most 
users 
just 
use 
Marathon, 
Hadoop, 
Spark, 
and 
Chronos 
• Why 
did 
we 
build 
our 
own? 
– Exo1c 
workload
The 
Plan, 
redux 
What 
is 
Mesos? 
How 
can 
I 
use 
Mesos? 
How 
can 
I 
build 
on 
Mesos?
Ques1ons? 
Thank 
you

Weitere ähnliche Inhalte

Was ist angesagt?

Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Strata SC 2014: Apache Mesos as an SDK for Building Distributed FrameworksStrata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Paco Nathan
 
DockerCon14 Cluster Management and Containerization
DockerCon14 Cluster Management and ContainerizationDockerCon14 Cluster Management and Containerization
DockerCon14 Cluster Management and Containerization
Docker, Inc.
 
Dockercon 2015 - Persistent Data in a Microservices World
Dockercon 2015 - Persistent Data in a Microservices WorldDockercon 2015 - Persistent Data in a Microservices World
Dockercon 2015 - Persistent Data in a Microservices World
{code}
 

Was ist angesagt? (20)

Deploying Containers in Production and at Scale
Deploying Containers in Production and at ScaleDeploying Containers in Production and at Scale
Deploying Containers in Production and at Scale
 
Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)
Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)
Building Web Scale Apps with Docker and Mesos by Alex Rukletsov (Mesosphere)
 
Mesos and containers
Mesos and containersMesos and containers
Mesos and containers
 
Apache Mesos
Apache MesosApache Mesos
Apache Mesos
 
Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Strata SC 2014: Apache Mesos as an SDK for Building Distributed FrameworksStrata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
Strata SC 2014: Apache Mesos as an SDK for Building Distributed Frameworks
 
Scale your docker containers with Mesos
Scale your docker containers with MesosScale your docker containers with Mesos
Scale your docker containers with Mesos
 
Introduction to DC/OS
Introduction to DC/OSIntroduction to DC/OS
Introduction to DC/OS
 
Federated mesos clusters for global data center designs
Federated mesos clusters for global data center designsFederated mesos clusters for global data center designs
Federated mesos clusters for global data center designs
 
Introduction to Apache Mesos
Introduction to Apache MesosIntroduction to Apache Mesos
Introduction to Apache Mesos
 
Mesos: A State-of-the-art Container Orchestrator
Mesos: A State-of-the-art Container OrchestratorMesos: A State-of-the-art Container Orchestrator
Mesos: A State-of-the-art Container Orchestrator
 
Docker, Mesos, Spark
Docker, Mesos, Spark Docker, Mesos, Spark
Docker, Mesos, Spark
 
DockerCon14 Cluster Management and Containerization
DockerCon14 Cluster Management and ContainerizationDockerCon14 Cluster Management and Containerization
DockerCon14 Cluster Management and Containerization
 
Container Orchestration Wars (Micro Edition)
Container Orchestration Wars (Micro Edition)Container Orchestration Wars (Micro Edition)
Container Orchestration Wars (Micro Edition)
 
Docker on mesos
Docker on mesosDocker on mesos
Docker on mesos
 
Kubernetes on Top of Mesos on Top of DCOS
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
 
Scalable On-Demand Hadoop Clusters with Docker and Mesos
Scalable On-Demand Hadoop Clusters with Docker and MesosScalable On-Demand Hadoop Clusters with Docker and Mesos
Scalable On-Demand Hadoop Clusters with Docker and Mesos
 
Trying out DC/OS (what?)
Trying out DC/OS (what?)Trying out DC/OS (what?)
Trying out DC/OS (what?)
 
Dockercon 2015 - Persistent Data in a Microservices World
Dockercon 2015 - Persistent Data in a Microservices WorldDockercon 2015 - Persistent Data in a Microservices World
Dockercon 2015 - Persistent Data in a Microservices World
 
February 2016 HUG: Running Spark Clusters in Containers with Docker
February 2016 HUG: Running Spark Clusters in Containers with DockerFebruary 2016 HUG: Running Spark Clusters in Containers with Docker
February 2016 HUG: Running Spark Clusters in Containers with Docker
 
ZooKeeper (and other things)
ZooKeeper (and other things)ZooKeeper (and other things)
ZooKeeper (and other things)
 

Ähnlich wie Mesos: The Operating System for your Datacenter

Thinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating SystemThinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating System
Weston Bassler
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
MongoDB
 

Ähnlich wie Mesos: The Operating System for your Datacenter (20)

Apache Mesos at Twitter (Texas LinuxFest 2014)
Apache Mesos at Twitter (Texas LinuxFest 2014)Apache Mesos at Twitter (Texas LinuxFest 2014)
Apache Mesos at Twitter (Texas LinuxFest 2014)
 
Mesos sys adminday
Mesos sys admindayMesos sys adminday
Mesos sys adminday
 
Mesos study report 03v1.2
Mesos study report  03v1.2Mesos study report  03v1.2
Mesos study report 03v1.2
 
Layer-X ContainerDays Slides May 24 2016
Layer-X ContainerDays Slides May 24 2016Layer-X ContainerDays Slides May 24 2016
Layer-X ContainerDays Slides May 24 2016
 
Challenges in Optimizing Job Scheduling on Mesos
Challenges in Optimizing Job Scheduling on MesosChallenges in Optimizing Job Scheduling on Mesos
Challenges in Optimizing Job Scheduling on Mesos
 
Apache mesos - overview
Apache mesos - overviewApache mesos - overview
Apache mesos - overview
 
Datacenter Computing and Resource Management Using Apache Mesos
Datacenter Computing and Resource Management Using Apache MesosDatacenter Computing and Resource Management Using Apache Mesos
Datacenter Computing and Resource Management Using Apache Mesos
 
Factored operating systems
Factored operating systemsFactored operating systems
Factored operating systems
 
Thinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating SystemThinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating System
 
Hadoop on-mesos
Hadoop on-mesosHadoop on-mesos
Hadoop on-mesos
 
Scaling a MeteorJS SaaS app on AWS
Scaling a MeteorJS SaaS app on AWSScaling a MeteorJS SaaS app on AWS
Scaling a MeteorJS SaaS app on AWS
 
Apache Mesos Distributed Computing Talk
Apache Mesos Distributed Computing Talk Apache Mesos Distributed Computing Talk
Apache Mesos Distributed Computing Talk
 
Running Spark on Mesos
Running Spark on MesosRunning Spark on Mesos
Running Spark on Mesos
 
Spark on Mesos
Spark on MesosSpark on Mesos
Spark on Mesos
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment Strategies
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
 
Mesos Introduction
Mesos IntroductionMesos Introduction
Mesos Introduction
 
Mesos introduction
Mesos introductionMesos introduction
Mesos introduction
 
Meetup Mesos : Mesos, Chronos and Marathon in CI/CD factory
Meetup Mesos : Mesos, Chronos and Marathon in CI/CD factoryMeetup Mesos : Mesos, Chronos and Marathon in CI/CD factory
Meetup Mesos : Mesos, Chronos and Marathon in CI/CD factory
 
A Travel Through Mesos
A Travel Through MesosA Travel Through Mesos
A Travel Through Mesos
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Mesos: The Operating System for your Datacenter