SlideShare a Scribd company logo
Mesos on CoreOS
Docker Seoul Meetup #4 / Sep 5, 2015
by @subicura (김충섭)
@subicura

Purpleworks Developer
Ruby on Rails
AngularJS, ReactJS
CoreOS, Docker
Openframeworks, OpenGL
• Deploy
• Capistrano
• Docker
• CoreOS
• Mesos
• Mesos on CoreOS
• Demo
DEPLOY
1. CAPISTRANO
Remote multi-server automation tool
1. Get latest source
2. Install dependencies
3. Restart
1. Get latest source
2. Install dependencies
3. Restart
Failed to install dependencies!!

Why???
conflicting library version
ruby version is too old
gcc version is too old
8080 port already in use
unknown error…
Googling!!
successfully deploy!!
but,

migration to another server or scale out?
Mesos on coreOS
2. DOCKER
new container technology
Docker is an open platform for building, shipping and running
distributed applications.
before(capistrano)
after(docker)
Docker
Images
before
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
$ echo 'eval "$(rbenv init -)"' >> ~/.zshrc
$ exec $SHELL
$ mkdir -p ~/.rbenv/plugins
$ git clone https://github.com/sstephenson/ruby-build.git
~/.rbenv/plugins/ruby-build
$ git clone https://github.com/sstephenson/rbenv-gem-rehash.git
~/.rbenv/plugins/rbenv-gem-rehash
$ rbenv install 2.2.2
$ rbenv global 2.2.2
$ ruby install bundler
…
…
after
docker run -p 80:80 app
MySQL
Postgresql
MongoDB
Redis
RabbitMQ
Nginx
Rails Application
…
Let’s start to make docker image!
http://www.slideshare.net/MichaelDucy/the-future-of-everything-37344357
The Future of Everything
http://www.slideshare.net/MichaelDucy/the-future-of-everything-37344357
How to deploy to remote server?
docker -H $TARGET_DEPLOY_TCP pull $DOCKER_REGISTRY_NAME:latest
docker -H $TARGET_DEPLOY_TCP stop $DOCKER_APP_NAME
docker -H $TARGET_DEPLOY_TCP rm $DOCKER_APP_NAME
docker -H $TARGET_DEPLOY_TCP run -d --name $DOCKER_APP_NAME 
-p 80:80 
-p 443:443 
-v /data/www:/var/www/upload 
$DOCKER_REGISTRY_NAME:latest
Docker Host
docker daemon
centurion
3. CoreOS
for container
CoreOS is designed to give you compute
capacity that is dynamically scaled and managed
A Minimal Operating System Painless Updating
Docker Containers Clustered By Default
A highly-available key value store
/services/web/web_1 172.17.8.101:49155
valuekey
directory
Fleet
Distributed init system
Mesos on coreOS
Great tools
Great features
Powerful
Require install agent (*not ansible)
Too many feature
Fleet is enough?
Fleet
Distribute systemd = low-level
Difficult cluster resource management
(No check CPU/Memory/Storage)
Lack of health check option
Lack of rolling restarts strategy
Lack of GUI tool
4. Mesos
A distributed systems kernel
Program against your datacenter like it’s a single pool of
resources
http://techcrunch.com/2014/06/09/mesosphere-grabs-10m-in-series-a-funding-to-transform-datacenters/
Mesos began as a research project in the UC Berkeley RAD Lab
Twitter, Facebook, Apple, Airbnb, Netflix, eBay, … using mesos
efficient resource isolation and sharing across distributed applications
supports a high availability mode (with Marathon)
support docker (from 0.20.0)
UI available
Job Scheduler (with Chronos)
support Hadoop, Kafka, Spark
mesos
(with marathon)
fleet
configuration JSON low-level shell command
cluster
resource management
yes no
health check http with many option process check
rolling restart
strategy
yes no
GUI yes no
Mesos on CoreOS
bootstrapping a cluster system
Fleet
DEMO
Master
Slave
Slave
Slave
zookeeper
mesos master(5050)
marathon(8080)
Master
Slave
Slave
Slave
mesos slave
mesos slave
mesos slave
zookeeper
mesos master(5050)
marathon(8080)
echo test
Deploy and manage containers
echo test
web server x 3
Deploy and manage containers
echo test
web server x 3
fleet-ui
Deploy and manage containers
Service Discovery
172.17.8.101:31524
172.17.8.102:31512
172.17.8.103:31533
172.17.8.101:31524
172.17.8.102:315
172.17.8.103:315
/services
ㄴwhoami
ㄴ1 - 172.17.8.101:31524
ㄴ2 - 172.17.8.102:31512
ㄴ3 - 172.17.8.103:31533
Registrator
Master
Slave
Slave
Slave
mesos slave
mesos slave
mesos slave
registrator
registrator
registrator
zookeeper
mesos master(5050)
marathon(8080)
172.17.8.101:31524
172.17.8.102:315
172.17.8.103:315
/services
CHANGE!?
confd
172.17.8.101:31524
172.17.8.102:315
172.17.8.103:315
/services
CHANGE!?
Update Config
Reload
whoami.sample.com
-172.17.8.101:31524
-172.17.8.102:31512
-172.17.8.103:31533
Master
Slave
Slave
Slave
mesos slave
mesos slave
mesos slavenginx-confd(80)
registrator
registrator
registrator
zookeeper
mesos master(5050)
marathon(8080)
Thank you!
Reference
✓ https://www.docker.com/
✓ http://coreos.com
✓ http://mesos.apache.org/
✓ https://mesosphere.github.io/marathon/
✓ https://github.com/gliderlabs/registrator
✓ https://github.com/kelseyhightower/confd
Sample Source
✓ https://github.com/subicura/mesos-on-coreos

More Related Content

PDF
Mesos ♥ Docker
Aish Fenton
 
PDF
Scaling Jenkins with Docker: Swarm, Kubernetes or Mesos?
Carlos Sanchez
 
PDF
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
Carlos Sanchez
 
PDF
CI/CD with Docker, DC/OS, and Jenkins
Karl Isenberg
 
PPTX
Platform as a Service with Kubernetes and Mesos
Miguel Zuniga
 
PDF
Musings on Mesos: Docker, Kubernetes, and Beyond.
Timothy St. Clair
 
PDF
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Carlos Sanchez
 
PDF
Beyond static configuration
Stefan Schimanski
 
Mesos ♥ Docker
Aish Fenton
 
Scaling Jenkins with Docker: Swarm, Kubernetes or Mesos?
Carlos Sanchez
 
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
Carlos Sanchez
 
CI/CD with Docker, DC/OS, and Jenkins
Karl Isenberg
 
Platform as a Service with Kubernetes and Mesos
Miguel Zuniga
 
Musings on Mesos: Docker, Kubernetes, and Beyond.
Timothy St. Clair
 
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Carlos Sanchez
 
Beyond static configuration
Stefan Schimanski
 

What's hot (20)

PDF
Integrating Docker with Mesos and Marathon
Rishabh Chaudhary
 
PDF
Net core, mssql, container und kubernetes
Thomas Fricke
 
PDF
Testing Distributed Micro Services. Agile Testing Days 2017
Carlos Sanchez
 
PDF
Achieving CI/CD with Kubernetes
Ramit Surana
 
PDF
IPC16: A Practical Introduction to Kubernetes
Robert Lemke
 
PDF
Monitoring microservices: Docker, Mesos and Kubernetes visibility at scale
Alessandro Gallotta
 
PPTX
Kubernetes 101 Workshop
Vishal Biyani
 
PPTX
Docker Swarm scheduling in 1.12
Atharva Chauthaiwale
 
PDF
Continuous delivery with Jenkins, Docker and Mesos/Marathon - jbcnconf
Julia Mateo
 
PDF
Introduction to Docker
Aditya Konarde
 
PPTX
Docker-hanoi meetup #1: introduction about Docker
Nguyen Anh Tu
 
PPTX
Kubernetes Introduction
Eric Gustafson
 
PDF
Very Early Review - Rocket(CoreOS)
충섭 김
 
PDF
Introduction to mesos bay
hongbin034
 
PPTX
Kubernetes HA @ AppDirect - Montreal Kubernetes Meetup
alexgervais
 
PPTX
Deploying apps with Docker and Kubernetes
Daniel Fenton
 
PDF
Docker on mesos
Bart Spaans
 
PDF
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Mario Ishara Fernando
 
PDF
Container Days Boston - Kubernetes in production
Mike Splain
 
PDF
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
Nils De Moor
 
Integrating Docker with Mesos and Marathon
Rishabh Chaudhary
 
Net core, mssql, container und kubernetes
Thomas Fricke
 
Testing Distributed Micro Services. Agile Testing Days 2017
Carlos Sanchez
 
Achieving CI/CD with Kubernetes
Ramit Surana
 
IPC16: A Practical Introduction to Kubernetes
Robert Lemke
 
Monitoring microservices: Docker, Mesos and Kubernetes visibility at scale
Alessandro Gallotta
 
Kubernetes 101 Workshop
Vishal Biyani
 
Docker Swarm scheduling in 1.12
Atharva Chauthaiwale
 
Continuous delivery with Jenkins, Docker and Mesos/Marathon - jbcnconf
Julia Mateo
 
Introduction to Docker
Aditya Konarde
 
Docker-hanoi meetup #1: introduction about Docker
Nguyen Anh Tu
 
Kubernetes Introduction
Eric Gustafson
 
Very Early Review - Rocket(CoreOS)
충섭 김
 
Introduction to mesos bay
hongbin034
 
Kubernetes HA @ AppDirect - Montreal Kubernetes Meetup
alexgervais
 
Deploying apps with Docker and Kubernetes
Daniel Fenton
 
Docker on mesos
Bart Spaans
 
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Mario Ishara Fernando
 
Container Days Boston - Kubernetes in production
Mike Splain
 
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
Nils De Moor
 
Ad

Viewers also liked (13)

PDF
RancherOS Introduction
Remotty
 
PPTX
세미나
Dongyi Kim
 
PDF
나는 어떻게 알고리즘을 공부했을까? + 신기한 방법으로 문제 풀어보기
Baekjoon Choi
 
PPTX
Docker orchestration
Open Source Consulting
 
PDF
집단 지성 (Programming collective intelligence) 스터디: Chapter 4 - Searching & Ranking
Ian Choi
 
PDF
Amazon EC2 Container Service in Action
Remotty
 
PDF
형태소 분석기를 적용한 elasticsearch 운영
창훈 정
 
PDF
1.openseminar
NAVER D2
 
PDF
5.yobi를 활용한 개발자 협업 및 배포 프로세스
NAVER D2
 
PDF
네이버 오픈세미나 백엔드_아키텍쳐
NAVER D2
 
PDF
Arcus
NAVER D2
 
PPTX
Docker toolbox
Yonghwee Kim
 
PDF
2.네이버 프론트엔드 김지태
NAVER D2
 
RancherOS Introduction
Remotty
 
세미나
Dongyi Kim
 
나는 어떻게 알고리즘을 공부했을까? + 신기한 방법으로 문제 풀어보기
Baekjoon Choi
 
Docker orchestration
Open Source Consulting
 
집단 지성 (Programming collective intelligence) 스터디: Chapter 4 - Searching & Ranking
Ian Choi
 
Amazon EC2 Container Service in Action
Remotty
 
형태소 분석기를 적용한 elasticsearch 운영
창훈 정
 
1.openseminar
NAVER D2
 
5.yobi를 활용한 개발자 협업 및 배포 프로세스
NAVER D2
 
네이버 오픈세미나 백엔드_아키텍쳐
NAVER D2
 
Arcus
NAVER D2
 
Docker toolbox
Yonghwee Kim
 
2.네이버 프론트엔드 김지태
NAVER D2
 
Ad

Similar to Mesos on coreOS (20)

PDF
Choosing PaaS: Cisco and Open Source Options: an overview
Cisco DevNet
 
PPTX
Devoxx France 2015 - The Docker Orchestration Ecosystem on Azure
Patrick Chanezon
 
PPTX
Docker open stack boston
dotCloud
 
PPTX
OpenStack Boston
Docker, Inc.
 
PDF
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
PDF
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
PDF
codemotion-docker-2014
Carlo Bonamico
 
PPTX
What's New in Docker - February 2017
Patrick Chanezon
 
PPTX
Mesos and Kubernetes ecosystem overview
Krishna-Kumar
 
PPTX
Intro to Docker November 2013
Docker, Inc.
 
PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
PDF
Microservices in Java
Anatole Tresch
 
PDF
Containerize! Between Docker and Jube.
Henryk Konsek
 
PPTX
Docker San Francisco Meetup April 2015 - The Docker Orchestration Ecosystem o...
Patrick Chanezon
 
PDF
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
dotCloud
 
PDF
Application Deployment on Openstack
Docker, Inc.
 
PDF
Docker notes for newbies
Mustafa Dağdelen
 
PPTX
Devoxx 2016 - Docker Nuts and Bolts
Patrick Chanezon
 
PPTX
Docker intro
NoelMc Grath
 
PDF
Docker dev ops for cd meetup 12-14
Simon Storm
 
Choosing PaaS: Cisco and Open Source Options: an overview
Cisco DevNet
 
Devoxx France 2015 - The Docker Orchestration Ecosystem on Azure
Patrick Chanezon
 
Docker open stack boston
dotCloud
 
OpenStack Boston
Docker, Inc.
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
codemotion-docker-2014
Carlo Bonamico
 
What's New in Docker - February 2017
Patrick Chanezon
 
Mesos and Kubernetes ecosystem overview
Krishna-Kumar
 
Intro to Docker November 2013
Docker, Inc.
 
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
Microservices in Java
Anatole Tresch
 
Containerize! Between Docker and Jube.
Henryk Konsek
 
Docker San Francisco Meetup April 2015 - The Docker Orchestration Ecosystem o...
Patrick Chanezon
 
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
dotCloud
 
Application Deployment on Openstack
Docker, Inc.
 
Docker notes for newbies
Mustafa Dağdelen
 
Devoxx 2016 - Docker Nuts and Bolts
Patrick Chanezon
 
Docker intro
NoelMc Grath
 
Docker dev ops for cd meetup 12-14
Simon Storm
 

More from 충섭 김 (7)

PDF
쿠버네티스를 이용한 기능 브랜치별 테스트 서버 만들기 (GitOps CI/CD)
충섭 김
 
PDF
Visual Studio로 Kubernetes 사용하기
충섭 김
 
PDF
Launching containers with fleet
충섭 김
 
PDF
Automatic docker service announcement with registrator and confd
충섭 김
 
PDF
CoreOS를 이용한 Docker 관리툴 소개
충섭 김
 
PDF
Confd, systemd, fleet을 이용한 어플리케이션 배포 in CoreOS
충섭 김
 
PDF
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
 
쿠버네티스를 이용한 기능 브랜치별 테스트 서버 만들기 (GitOps CI/CD)
충섭 김
 
Visual Studio로 Kubernetes 사용하기
충섭 김
 
Launching containers with fleet
충섭 김
 
Automatic docker service announcement with registrator and confd
충섭 김
 
CoreOS를 이용한 Docker 관리툴 소개
충섭 김
 
Confd, systemd, fleet을 이용한 어플리케이션 배포 in CoreOS
충섭 김
 
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
 

Recently uploaded (20)

PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Software Development Methodologies in 2025
KodekX
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Doc9.....................................
SofiaCollazos
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 

Mesos on coreOS