SlideShare a Scribd company logo
1 of 34
Download to read offline
1KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
2KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Introduce
Mesos
Apache Mesos abstracts CPU, memory, storage, and other compute
resources away from machines (physical or virtual), enabling fault-tolerant
and elastic distributed systems to easily be built and run effectively.
Mesos is built using the same principles as the Linux kernel, only at a
different level of abstraction. The Mesos kernel runs on every machine and
provides applications with API’s for resource management and scheduling
across entire datacenter and cloud environments.
3KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
소개
메소스
Mesos는 Machine(혹은 Node)의 자원(CPU, Memory, Storage 등) 을 공유해서 사용.
일종의 데이터센터 자원의 커널
Cloud Infrastructure 및 Computing Engine들의 자원을 통합적 으로 관리 할 수 있도록
만든 자원관리 프로젝트.
4KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• UC Berkeley에서 Nexus 라는 이름으로 개발이 진행되던 프로젝트.
• Mesos라는 이름으로 Apache 재단에 오픈소스로 발표.
• Mesos를 활용 기업
Mesos
History &Reference
5KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• 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
Mesos
Features
6KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• 인프라에 대한 Utility를 향상 시켜, 비용 감소
• 개발자 관점에서 리소스에 대한 View를 단순화 함.
• 다양한 워크로드를 수행할 수 있는 프레임워크를 지원
• 특정 OS 혹은 벤더에 Lock-In되지 않기 때문에 H/W나 OS 선택의 폭이 넓음.
Mesos
Why?
7KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Architecture : Master
Mesos
◦ Slave 리소스와 Framework 간의 중재 역할
◦ 안정성을 위해서 다수의 Master를 운영 가능
- Active 상태의 Master는 1대만 존재
- Master Active 선출/관리는 ZooKeeper 사용
- Active 이외의 Master는 Standby 상태 유지
◦ Master는 Framework가 Slave Resource를
사용할 수 있도록 제공.
8KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Architecture : Slave
Mesos
◦ Mesos 클러스터의 실제 작업(Task)을 수행
◦ 개별 노드에 대한 자원 관리 및 비즈니스 우선
순위를 반영하기 위한 자원 정책 구성.
9KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Architecture : Frameworks
Mesos
◦ 각 프레임워크는 스케줄러와 Executor로 구성.
◦ scheduler
- Master에 등록된 리소스를 사용하도록 등록.
◦ executor
- 슬레이브 노드에서 프레임워크 Task를
실행하기 위한 프로세스
10KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Architecture
Mesos
11KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• Aurora is a service scheduler that runs on top of Mesos, enabling you
to run long-running services that take advantage of Mesos'
scalability, fault-tolerance, and resource isolation.
• Marathon is a private PaaS built on Mesos. It automatically handles
hardware or software failures and ensures that an app is “always on”.
• Singularity is a scheduler (HTTP API and web interface) for running
Mesos tasks: long running processes, one-off tasks, and scheduled
jobs.
• SSSP is a simple web application that provides a white-label
“Megaupload” for storing and sharing files in S3.
Mesos
Framework : Long Running Services
12KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• Cray Chapel is a productive parallel programming language. The Chapel Mesos scheduler lets you run Chapel
programs on Mesos.
• Dpark is a Python clone of Spark, a MapReduce-like framework written in Python, running on Mesos.
• Exelixi is a distributed framework for running genetic algorithms at scale.
• Hadoop Running Hadoop on Mesos distributes MapReduce jobs efficiently across an entire cluster.
• Hama is a distributed computing framework based on Bulk Synchronous Parallel computing techniques for massive
scientific computations e.g., matrix, graph and network algorithms.
• MPI is a message-passing system designed to function on a wide variety of parallel computers.
• Spark is a fast and general-purpose cluster computing system which makes parallel jobs easy to write.
• Storm is a distributed realtime computation system. Storm makes it easy to reliably process unbounded streams of
data, doing for realtime processing what Hadoop did for batch processing.
Mesos
Framework : Big Data Processing
13KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• Chronos is a distributed job scheduler that supports complex job
topologies. It can be used as a more fault-tolerant replacement for
Cron.
• Jenkins is a continuous integration server. The mesos-jenkins plugin
allows it to dynamically launch workers on a Mesos cluster depending
on the workload.
• JobServer is a distributed job scheduler and processor which allows
developers to build custom batch processing Tasklets using point and
click web UI.
Mesos
Framework : Batch Scheduling
14KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• Cassandra is a performant and highly available distributed database.
Linear scalability and proven fault-tolerance on commodity hardware
or cloud infrastructure make it the perfect platform for mission-
critical data.
• ElasticSearch is a distributed search engine. Mesos makes it easy to
run and scale.
• Hypertable is a high performance, scalable, distributed storage and
processing system for structured and unstructured data.
Mesos
Framework : Data Storage
15KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
High availability
Mesos
Mesos is configured for high availability, the leading master will abort itself
when it discovers it has been partitioned away from the Zookeeper
quorum. This is a safety precaution to ensure the previous leader doesn’t
continue communicating in an unsafe state.
16KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
• Master Quorum이 2N-1 일 때, N개 이상의 Master가 동작 중이어야 함.
• Master Quorum의 수량은 3 혹은 5개를 권고
Mesos
Master Quorum
Master Quorum Size Failure Tolerance
1 1 0
3 2 1
5 3 2
… … …
2N-1 N N-1
17KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Mesos 동작방식
18KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Flow
Mesos
Step 1. Slave 자신의 자원을 Master 서버에게 알림.
Slave Master
Resource register
19KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Flow
Mesos
Step 2. Master 서버는 Slave 자원 정보를 Framework에 알림.
Master Framework
Resource Inform
20KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Flow
Mesos
Step 3. Framework에 Job 1을 수행토록 지시.
Admin Framework
Task (Job)
21KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Flow
Mesos
Step 4. Master 서버는 Job 1을 Slave 서버에 전송.
MasterFramework Slave
22KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Flow
Mesos
Step 5. Slave 서버는 해당 작업을 수행
Running
Slave
23KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Example of resource offer
Mesos
24KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Datacenter OS
25KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Datacenter operating system - DCOS
The DCOS runs in any
modern Linux environment:
public and private cloud,
virtual machines and bare
metal.
Built in to the DCOS, Mesos
pools your infrastructure,
automatically allocating
resources and scheduling
tasks based on demands
and policy.
Control your entire DCOS-
powered datacenter from a
single command line and a
single web user interface.
Run all your apps and
workloads, from PaaS-
based microservices to big
data to databases — and
everything in between.
26KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
DATACENTER OPERATING SYSTEM - DCOS
27KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Mesos 미리보기
28KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Dashboard
Mesos
29KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Dashboard : Frameworks
Mesos
30KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Dashboard : Slaves
Mesos
31KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Dashboard : Application
Marathon
32KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Dashboard : Application Detail
Marathon
33KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
Etc.
Mesos
Pushing control to the frameworks has two benefits.
First, it allows frameworks to implement diverse approaches to various problems in
the cluster (e.g., achieving data locality, dealing with faults), and to evolve these
solutions independently. Second, it keeps Mesos simple and minimizes the rate of
change required of the system, which makes it easier to keep Mesos scalable and
robust.
34KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
End.

More Related Content

What's hot

Hadoop Technical Presentation
Hadoop Technical PresentationHadoop Technical Presentation
Hadoop Technical PresentationErwan Alliaume
 
Introduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseIntroduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseAbhijeet Shekhar
 
GlusterFS Architecture - June 30, 2011 Meetup
GlusterFS Architecture - June 30, 2011 MeetupGlusterFS Architecture - June 30, 2011 Meetup
GlusterFS Architecture - June 30, 2011 MeetupGlusterFS
 
Cassandra - how to fail?
Cassandra - how to fail?Cassandra - how to fail?
Cassandra - how to fail?SoftwareMill
 
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...Insight Technology, Inc.
 
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File Format
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File FormatScylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File Format
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File FormatScyllaDB
 
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible API
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible APIDatabase Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible API
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible APIScyllaDB
 
BeeGFS Enterprise Deployment
BeeGFS Enterprise Deployment BeeGFS Enterprise Deployment
BeeGFS Enterprise Deployment Dirk Petersen
 
Burst Presto & Spark workloads to AWS EMR with no data copies
Burst Presto & Spark workloads to AWS EMR with no data copiesBurst Presto & Spark workloads to AWS EMR with no data copies
Burst Presto & Spark workloads to AWS EMR with no data copiesAlluxio, Inc.
 
Scientific Computing @ Fred Hutch
Scientific Computing @ Fred HutchScientific Computing @ Fred Hutch
Scientific Computing @ Fred HutchDirk Petersen
 
Indic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndicThreads
 
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Darshan Gorasiya
 
Sharing resources with non-Hadoop workloads
Sharing resources with non-Hadoop workloadsSharing resources with non-Hadoop workloads
Sharing resources with non-Hadoop workloadsDataWorks Summit
 
Fb talk arch_summit
Fb talk arch_summitFb talk arch_summit
Fb talk arch_summitdrewz lin
 
美团技术沙龙04 - 高性能服务器架构设计和调优
美团技术沙龙04 - 高性能服务器架构设计和调优美团技术沙龙04 - 高性能服务器架构设计和调优
美团技术沙龙04 - 高性能服务器架构设计和调优美团点评技术团队
 
BeeGFS - Dealing with Extreme Requirements in HPC
BeeGFS - Dealing with Extreme Requirements in HPCBeeGFS - Dealing with Extreme Requirements in HPC
BeeGFS - Dealing with Extreme Requirements in HPCinside-BigData.com
 
سکوهای ابری و مدل های برنامه نویسی در ابر
سکوهای ابری و مدل های برنامه نویسی در ابرسکوهای ابری و مدل های برنامه نویسی در ابر
سکوهای ابری و مدل های برنامه نویسی در ابرdatastack
 
SQL or NoSQL, that is the question!
SQL or NoSQL, that is the question!SQL or NoSQL, that is the question!
SQL or NoSQL, that is the question!Andraz Tori
 

What's hot (20)

Hadoop Technical Presentation
Hadoop Technical PresentationHadoop Technical Presentation
Hadoop Technical Presentation
 
Databases in the Cloud
Databases in the CloudDatabases in the Cloud
Databases in the Cloud
 
Introduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseIntroduction of Redis as NoSQL Database
Introduction of Redis as NoSQL Database
 
GlusterFS Architecture - June 30, 2011 Meetup
GlusterFS Architecture - June 30, 2011 MeetupGlusterFS Architecture - June 30, 2011 Meetup
GlusterFS Architecture - June 30, 2011 Meetup
 
Cassandra - how to fail?
Cassandra - how to fail?Cassandra - how to fail?
Cassandra - how to fail?
 
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...
[db tech showcase OSS 2017] A23: Analytics with MariaDB ColumnStore by MariaD...
 
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File Format
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File FormatScylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File Format
Scylla Summit 2018: Scylla Feature Talks - SSTables 3.0 File Format
 
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible API
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible APIDatabase Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible API
Database Jiu Jitsu: How ScyllaDB Open Sourced a DynamoDB-compatible API
 
Ceph c01
Ceph c01Ceph c01
Ceph c01
 
BeeGFS Enterprise Deployment
BeeGFS Enterprise Deployment BeeGFS Enterprise Deployment
BeeGFS Enterprise Deployment
 
Burst Presto & Spark workloads to AWS EMR with no data copies
Burst Presto & Spark workloads to AWS EMR with no data copiesBurst Presto & Spark workloads to AWS EMR with no data copies
Burst Presto & Spark workloads to AWS EMR with no data copies
 
Scientific Computing @ Fred Hutch
Scientific Computing @ Fred HutchScientific Computing @ Fred Hutch
Scientific Computing @ Fred Hutch
 
Indic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path aheadIndic threads pune12-nosql now and path ahead
Indic threads pune12-nosql now and path ahead
 
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
 
Sharing resources with non-Hadoop workloads
Sharing resources with non-Hadoop workloadsSharing resources with non-Hadoop workloads
Sharing resources with non-Hadoop workloads
 
Fb talk arch_summit
Fb talk arch_summitFb talk arch_summit
Fb talk arch_summit
 
美团技术沙龙04 - 高性能服务器架构设计和调优
美团技术沙龙04 - 高性能服务器架构设计和调优美团技术沙龙04 - 高性能服务器架构设计和调优
美团技术沙龙04 - 高性能服务器架构设计和调优
 
BeeGFS - Dealing with Extreme Requirements in HPC
BeeGFS - Dealing with Extreme Requirements in HPCBeeGFS - Dealing with Extreme Requirements in HPC
BeeGFS - Dealing with Extreme Requirements in HPC
 
سکوهای ابری و مدل های برنامه نویسی در ابر
سکوهای ابری و مدل های برنامه نویسی در ابرسکوهای ابری و مدل های برنامه نویسی در ابر
سکوهای ابری و مدل های برنامه نویسی در ابر
 
SQL or NoSQL, that is the question!
SQL or NoSQL, that is the question!SQL or NoSQL, that is the question!
SQL or NoSQL, that is the question!
 

Similar to Mesos: An Open-Source Cluster Manager

SMACK Stack 1.1
SMACK Stack 1.1SMACK Stack 1.1
SMACK Stack 1.1Joe Stein
 
Fully fault tolerant real time data pipeline with docker and mesos
Fully fault tolerant real time data pipeline with docker and mesos Fully fault tolerant real time data pipeline with docker and mesos
Fully fault tolerant real time data pipeline with docker and mesos Rahul Kumar
 
Azure fb-google Web Services
Azure fb-google Web ServicesAzure fb-google Web Services
Azure fb-google Web ServicesShreya Srivastava
 
Data Lake and the rise of the microservices
Data Lake and the rise of the microservicesData Lake and the rise of the microservices
Data Lake and the rise of the microservicesBigstep
 
Bringing Structure, Scalability, and Services to Cloud-Scale Storage
Bringing Structure, Scalability, and Services to Cloud-Scale StorageBringing Structure, Scalability, and Services to Cloud-Scale Storage
Bringing Structure, Scalability, and Services to Cloud-Scale StorageMapR Technologies
 
Infinitely Scalable Clusters - Grid Computing on Public Cloud - London
Infinitely Scalable Clusters - Grid Computing on Public Cloud - LondonInfinitely Scalable Clusters - Grid Computing on Public Cloud - London
Infinitely Scalable Clusters - Grid Computing on Public Cloud - LondonHentsū
 
Containerized Data Persistence on Mesos
Containerized Data Persistence on MesosContainerized Data Persistence on Mesos
Containerized Data Persistence on MesosJoe Stein
 
Apache Mesos Overview and Integration
Apache Mesos Overview and IntegrationApache Mesos Overview and Integration
Apache Mesos Overview and IntegrationAlex Baretto
 
MANTL Data Platform, Microservices and BigData Services
MANTL Data Platform, Microservices and BigData ServicesMANTL Data Platform, Microservices and BigData Services
MANTL Data Platform, Microservices and BigData ServicesCisco DevNet
 
HPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyHPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyPeter Clapham
 
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating SystemOSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating SystemNETWAYS
 
[DO16] Mesosphere : Microservices meet Fast Data on Azure
[DO16] Mesosphere : Microservices meet Fast Data on Azure [DO16] Mesosphere : Microservices meet Fast Data on Azure
[DO16] Mesosphere : Microservices meet Fast Data on Azure de:code 2017
 
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...Making Distributed Data Persistent Services Elastic (Without Losing All Your ...
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...Joe Stein
 
Data has a better idea the in-memory data grid
Data has a better idea   the in-memory data gridData has a better idea   the in-memory data grid
Data has a better idea the in-memory data gridBogdan Dina
 
Introduction to mesos
Introduction to mesosIntroduction to mesos
Introduction to mesosOmid Vahdaty
 
Cisco Big Data Use Case
Cisco Big Data Use CaseCisco Big Data Use Case
Cisco Big Data Use CaseErni Susanti
 
cisco_bigdata_case_study_1
cisco_bigdata_case_study_1cisco_bigdata_case_study_1
cisco_bigdata_case_study_1Erni Susanti
 
DB Turbo v6.0 2023.pdf
DB Turbo v6.0 2023.pdfDB Turbo v6.0 2023.pdf
DB Turbo v6.0 2023.pdfDalportoBaldo
 
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...anynines GmbH
 

Similar to Mesos: An Open-Source Cluster Manager (20)

SMACK Stack 1.1
SMACK Stack 1.1SMACK Stack 1.1
SMACK Stack 1.1
 
Fully fault tolerant real time data pipeline with docker and mesos
Fully fault tolerant real time data pipeline with docker and mesos Fully fault tolerant real time data pipeline with docker and mesos
Fully fault tolerant real time data pipeline with docker and mesos
 
Azure fb-google Web Services
Azure fb-google Web ServicesAzure fb-google Web Services
Azure fb-google Web Services
 
Data Lake and the rise of the microservices
Data Lake and the rise of the microservicesData Lake and the rise of the microservices
Data Lake and the rise of the microservices
 
Bringing Structure, Scalability, and Services to Cloud-Scale Storage
Bringing Structure, Scalability, and Services to Cloud-Scale StorageBringing Structure, Scalability, and Services to Cloud-Scale Storage
Bringing Structure, Scalability, and Services to Cloud-Scale Storage
 
Infinitely Scalable Clusters - Grid Computing on Public Cloud - London
Infinitely Scalable Clusters - Grid Computing on Public Cloud - LondonInfinitely Scalable Clusters - Grid Computing on Public Cloud - London
Infinitely Scalable Clusters - Grid Computing on Public Cloud - London
 
Containerized Data Persistence on Mesos
Containerized Data Persistence on MesosContainerized Data Persistence on Mesos
Containerized Data Persistence on Mesos
 
Apache Mesos Overview and Integration
Apache Mesos Overview and IntegrationApache Mesos Overview and Integration
Apache Mesos Overview and Integration
 
MANTL Data Platform, Microservices and BigData Services
MANTL Data Platform, Microservices and BigData ServicesMANTL Data Platform, Microservices and BigData Services
MANTL Data Platform, Microservices and BigData Services
 
Introducing Mache
Introducing MacheIntroducing Mache
Introducing Mache
 
HPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyHPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journey
 
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating SystemOSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
OSDC 2015: Bernd Mathiske | Why the Datacenter Needs an Operating System
 
[DO16] Mesosphere : Microservices meet Fast Data on Azure
[DO16] Mesosphere : Microservices meet Fast Data on Azure [DO16] Mesosphere : Microservices meet Fast Data on Azure
[DO16] Mesosphere : Microservices meet Fast Data on Azure
 
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...Making Distributed Data Persistent Services Elastic (Without Losing All Your ...
Making Distributed Data Persistent Services Elastic (Without Losing All Your ...
 
Data has a better idea the in-memory data grid
Data has a better idea   the in-memory data gridData has a better idea   the in-memory data grid
Data has a better idea the in-memory data grid
 
Introduction to mesos
Introduction to mesosIntroduction to mesos
Introduction to mesos
 
Cisco Big Data Use Case
Cisco Big Data Use CaseCisco Big Data Use Case
Cisco Big Data Use Case
 
cisco_bigdata_case_study_1
cisco_bigdata_case_study_1cisco_bigdata_case_study_1
cisco_bigdata_case_study_1
 
DB Turbo v6.0 2023.pdf
DB Turbo v6.0 2023.pdfDB Turbo v6.0 2023.pdf
DB Turbo v6.0 2023.pdf
 
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
 

Recently uploaded

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Mesos: An Open-Source Cluster Manager

  • 1. 1KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net
  • 2. 2KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Introduce Mesos Apache Mesos abstracts CPU, memory, storage, and other compute resources away from machines (physical or virtual), enabling fault-tolerant and elastic distributed systems to easily be built and run effectively. Mesos is built using the same principles as the Linux kernel, only at a different level of abstraction. The Mesos kernel runs on every machine and provides applications with API’s for resource management and scheduling across entire datacenter and cloud environments.
  • 3. 3KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net 소개 메소스 Mesos는 Machine(혹은 Node)의 자원(CPU, Memory, Storage 등) 을 공유해서 사용. 일종의 데이터센터 자원의 커널 Cloud Infrastructure 및 Computing Engine들의 자원을 통합적 으로 관리 할 수 있도록 만든 자원관리 프로젝트.
  • 4. 4KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • UC Berkeley에서 Nexus 라는 이름으로 개발이 진행되던 프로젝트. • Mesos라는 이름으로 Apache 재단에 오픈소스로 발표. • Mesos를 활용 기업 Mesos History &Reference
  • 5. 5KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • 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 Mesos Features
  • 6. 6KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • 인프라에 대한 Utility를 향상 시켜, 비용 감소 • 개발자 관점에서 리소스에 대한 View를 단순화 함. • 다양한 워크로드를 수행할 수 있는 프레임워크를 지원 • 특정 OS 혹은 벤더에 Lock-In되지 않기 때문에 H/W나 OS 선택의 폭이 넓음. Mesos Why?
  • 7. 7KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Architecture : Master Mesos ◦ Slave 리소스와 Framework 간의 중재 역할 ◦ 안정성을 위해서 다수의 Master를 운영 가능 - Active 상태의 Master는 1대만 존재 - Master Active 선출/관리는 ZooKeeper 사용 - Active 이외의 Master는 Standby 상태 유지 ◦ Master는 Framework가 Slave Resource를 사용할 수 있도록 제공.
  • 8. 8KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Architecture : Slave Mesos ◦ Mesos 클러스터의 실제 작업(Task)을 수행 ◦ 개별 노드에 대한 자원 관리 및 비즈니스 우선 순위를 반영하기 위한 자원 정책 구성.
  • 9. 9KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Architecture : Frameworks Mesos ◦ 각 프레임워크는 스케줄러와 Executor로 구성. ◦ scheduler - Master에 등록된 리소스를 사용하도록 등록. ◦ executor - 슬레이브 노드에서 프레임워크 Task를 실행하기 위한 프로세스
  • 10. 10KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Architecture Mesos
  • 11. 11KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • Aurora is a service scheduler that runs on top of Mesos, enabling you to run long-running services that take advantage of Mesos' scalability, fault-tolerance, and resource isolation. • Marathon is a private PaaS built on Mesos. It automatically handles hardware or software failures and ensures that an app is “always on”. • Singularity is a scheduler (HTTP API and web interface) for running Mesos tasks: long running processes, one-off tasks, and scheduled jobs. • SSSP is a simple web application that provides a white-label “Megaupload” for storing and sharing files in S3. Mesos Framework : Long Running Services
  • 12. 12KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • Cray Chapel is a productive parallel programming language. The Chapel Mesos scheduler lets you run Chapel programs on Mesos. • Dpark is a Python clone of Spark, a MapReduce-like framework written in Python, running on Mesos. • Exelixi is a distributed framework for running genetic algorithms at scale. • Hadoop Running Hadoop on Mesos distributes MapReduce jobs efficiently across an entire cluster. • Hama is a distributed computing framework based on Bulk Synchronous Parallel computing techniques for massive scientific computations e.g., matrix, graph and network algorithms. • MPI is a message-passing system designed to function on a wide variety of parallel computers. • Spark is a fast and general-purpose cluster computing system which makes parallel jobs easy to write. • Storm is a distributed realtime computation system. Storm makes it easy to reliably process unbounded streams of data, doing for realtime processing what Hadoop did for batch processing. Mesos Framework : Big Data Processing
  • 13. 13KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • Chronos is a distributed job scheduler that supports complex job topologies. It can be used as a more fault-tolerant replacement for Cron. • Jenkins is a continuous integration server. The mesos-jenkins plugin allows it to dynamically launch workers on a Mesos cluster depending on the workload. • JobServer is a distributed job scheduler and processor which allows developers to build custom batch processing Tasklets using point and click web UI. Mesos Framework : Batch Scheduling
  • 14. 14KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • Cassandra is a performant and highly available distributed database. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission- critical data. • ElasticSearch is a distributed search engine. Mesos makes it easy to run and scale. • Hypertable is a high performance, scalable, distributed storage and processing system for structured and unstructured data. Mesos Framework : Data Storage
  • 15. 15KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net High availability Mesos Mesos is configured for high availability, the leading master will abort itself when it discovers it has been partitioned away from the Zookeeper quorum. This is a safety precaution to ensure the previous leader doesn’t continue communicating in an unsafe state.
  • 16. 16KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net • Master Quorum이 2N-1 일 때, N개 이상의 Master가 동작 중이어야 함. • Master Quorum의 수량은 3 혹은 5개를 권고 Mesos Master Quorum Master Quorum Size Failure Tolerance 1 1 0 3 2 1 5 3 2 … … … 2N-1 N N-1
  • 17. 17KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Mesos 동작방식
  • 18. 18KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Flow Mesos Step 1. Slave 자신의 자원을 Master 서버에게 알림. Slave Master Resource register
  • 19. 19KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Flow Mesos Step 2. Master 서버는 Slave 자원 정보를 Framework에 알림. Master Framework Resource Inform
  • 20. 20KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Flow Mesos Step 3. Framework에 Job 1을 수행토록 지시. Admin Framework Task (Job)
  • 21. 21KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Flow Mesos Step 4. Master 서버는 Job 1을 Slave 서버에 전송. MasterFramework Slave
  • 22. 22KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Flow Mesos Step 5. Slave 서버는 해당 작업을 수행 Running Slave
  • 23. 23KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Example of resource offer Mesos
  • 24. 24KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Datacenter OS
  • 25. 25KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Datacenter operating system - DCOS The DCOS runs in any modern Linux environment: public and private cloud, virtual machines and bare metal. Built in to the DCOS, Mesos pools your infrastructure, automatically allocating resources and scheduling tasks based on demands and policy. Control your entire DCOS- powered datacenter from a single command line and a single web user interface. Run all your apps and workloads, from PaaS- based microservices to big data to databases — and everything in between.
  • 26. 26KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net DATACENTER OPERATING SYSTEM - DCOS
  • 27. 27KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Mesos 미리보기
  • 28. 28KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Dashboard Mesos
  • 29. 29KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Dashboard : Frameworks Mesos
  • 30. 30KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Dashboard : Slaves Mesos
  • 31. 31KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Dashboard : Application Marathon
  • 32. 32KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Dashboard : Application Detail Marathon
  • 33. 33KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net Etc. Mesos Pushing control to the frameworks has two benefits. First, it allows frameworks to implement diverse approaches to various problems in the cluster (e.g., achieving data locality, dealing with faults), and to evolve these solutions independently. Second, it keeps Mesos simple and minimizes the rate of change required of the system, which makes it easier to keep Mesos scalable and robust.
  • 34. 34KrDAG – ZIGI zigispace.netKrDAG – ZIGI zigispace.net End.