introduction to mesos and the datacenter operating system

27
© 2016 Mesosphere, Inc. All Rights Reserved. Introduction to Mesos and the Datacenter Operating System Artem Harutyunyan ([email protected])

Upload: lecong

Post on 13-Feb-2017

229 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

Introduction to Mesos and the Datacenter Operating System Artem Harutyunyan ([email protected])

Page 2: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 2

$ whoamiINTRO

ARTEM HARUTYUNYAN● ALICE Offline (2004 - 2010)

● AliEn (porting to Windows, authentication, scheduling, etc)

● Fellow at PH/SFT (2010 - 2012)

● CernVM Co-Pilot (LHC@home 2.0)

● CernVM (File System) Infrastructure

● Architect/Engineering Director at Qualys (2012 - 2015)

● Engineering Director at Mesosphere (2015 - )

Page 3: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 3

Apache Mesos is a general purpose cluster manager.

WHAT IS APACHE MESOS?MESOS

Page 4: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 4

Wait!? Like a batch system?

IS IT A BATCH SYSTEM?MESOS

Page 5: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 5

NO!

IS IT A BATCH SYSTEM?MESOS

Page 6: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved.

Master

Agents

Framework FrameworkFramework

6

MESOS

2-LEVEL SCHEDULING

Page 7: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 7

MESOS

LEVEL OF INDIRECTION

Mesos (agents)

Framework

Mesos (master)

Framework

responsible for allocation (and reallocation) of resources

Framework

Page 8: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 8

MESOS

LEVEL OF INDIRECTION

Mesos (agents)

Mesos (master)

framework

responsible for allocation (and reallocation) of resources

framework

Page 9: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

AUTOMATED OPERATIONS OF DISTRIBUTED SYSTEMSGOAL

Software should manage itself.

● Most distributed systems are difficult to manage but they don’t need to be.

Page 10: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 10

BUILT ON MESOSMESOS

2009 2010 2013 2014 2015

Page 11: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 11

PORTED TO MESOSMESOS

2011 2012 2013 2014 2015

Page 12: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 12

BREAK OUT OF TRADITIONAL INFRASTRUCTURE SILOSRESULT

• Many silos.

• Management nightmare.

• Lengthy cycles to deploy code.

• Low utilization.

Apache Mesos and the DC/OS

TRADITIONAL APPROACH

PaaS 1

ContainerApp

1Big Data

Analytics 1Big Data

Analytics 2

PaaS 2

ContainerApp

2Stateful Service

1

Stateful Service

2

Complete workload portability

UNIFIED APPROACH

ContainerApps(All) Big Data Analytics

(All)

PaaS (All)

Stateful Service(All)

• High performance and resource isolation.

• Easy scalability and multi-tenancy.

• Fault tolerant and highly available.

• Highly efficient with highest utilization.

Deploys on-prem or in cloud

Page 13: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved. 13

THE DATACENTER COMPUTER

Page 14: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 14

1. TREAT MACHINES AS CATTLE NOT PETS

Keep the base operating system small and simple, run “containerized” applications.

2. AUTOMATE WITH SOFTWARE NOT HUMANS

Let software schedule software, i.e., handle failures, improve utilization, and manage maintenance.

PRINCIPLES

Page 15: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 15

DATACENTER KERNELMESOS

provides common functionality every new distributed system re-implements:

• resource allocation• resource deallocation• resource reservations• resource isolation• resource monitoring• failure detection• package distribution• task starting, killing, cleanup• volume management• …

don’t reinvent the wheel!

Page 16: Introduction to Mesos and the Datacenter Operating System

© 2015 Mesosphere, Inc. All Rights Reserved. 16

INTERESTING FEATURESMESOS

● Quota

● Oversubscription

● Maintenance

● Persistence Primitives

● External Storage

● Security

● CVMFS Integration (presented at Mesoscon NA 2016)

● Optimistic Offers (upcoming)

Page 17: Introduction to Mesos and the Datacenter Operating System

Distributed Systems Kernel (Mesos)

DATACENTER OPERATING SYSTEM (DC/OS)

Distributed systems kernel to abstract resources

18

Page 18: Introduction to Mesos and the Datacenter Operating System

Distributed Systems Kernel (Mesos)

DATACENTER OPERATING SYSTEM (DC/OS)

Distributed systems kernel to abstract resources

User Interface (GUI & CLI)

Core system services (e.g., distributed init, cron, service discovery, package mgt & installer, storage)

19

Datacenter Operating System (DC/OS)

Page 19: Introduction to Mesos and the Datacenter Operating System

Distributed Systems Kernel (Mesos)

DATACENTER OPERATING SYSTEM (DC/OS)

Distributed systems kernel to abstract resources

User Interface (GUI & CLI)

Core system services (e.g., distributed init, cron, service discovery, package mgt & installer, storage)

20

Datacenter Operating System (DC/OS)

On Premise AWS Azure

Page 20: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

● Mesos!

● API, CLI and GUI

● Service Discovery & Load Balancing

● Storage Volumes

● Package Manager

● Installer for on premise and cloud

WHAT’S IN THE BOX?

Page 21: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

Page 22: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

Page 23: Introduction to Mesos and the Datacenter Operating System

24

DC/OS ● 100% open source (ASL2.0)+ Kicked off with a big, diverse

community● An umbrella for ~30 OSS projects

+ Roadmap and designs+ The build tool chain+ Docs and tutorials

● Not limited in any way● Familiar, with a few new features

Page 24: Introduction to Mesos and the Datacenter Operating System

25

THEUNIVERSE

Page 25: Introduction to Mesos and the Datacenter Operating System

26

Page 26: Introduction to Mesos and the Datacenter Operating System

27

THE COMMUNITY

Page 27: Introduction to Mesos and the Datacenter Operating System

© 2016 Mesosphere, Inc. All Rights Reserved.

Check outdcos.io!

THANK YOU