Top Banner
© 2016 Mesosphere, Inc. All Rights Reserved. MESOS, DC/ OS AND THE ARCHITECTUR E OF THE NEW DATACENTER 1
34

Mesos, DC/OS and the Architecture of the New Datacenter

Apr 21, 2017

Download

Data & Analytics

QAware GmbH
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

MESOS, DC/OS AND THE ARCHITECTURE OF THE NEW DATACENTER

1

Page 2: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

WHOAMI

2

[email protected] databasesPhD, High energy nuclear physics2007 - 2014

2014 - 20152015 -

Page 3: Mesos, DC/OS and the Architecture of the New Datacenter

3

PHYSICAL (x86) VIRTUAL HYPERSCALEMAINFRAME

SERVER VIRTUAL MACHINE

PARTITION (LPAR)

UNIT OF INTERACTION

● ERP, CRM, PRODUCTIVITY, MAIL & WEB SERVER

● LINUX, WINDOWS

● DATA / TRANSACTION PROCESSING

● UNIX, IBM OS/360DEFINITIVE

APPS AND OS

● ERP, CRM, PRODUCTIVITY, MAIL & WEB SERVER

● HYPERVISOR + GUEST OS

● BIG DATA, INTERNET OF THINGS, MOBILE APPS

● ???

???DATACENTER

NEW FORM FACTOR FOR DEVELOPING AND

RUNNING APPS

● BIG DATA, INTERNET OF THINGS, MOBILE APPS

● DATACENTER OPERATING SYSTEM (DC/OS)

EVOLUTION OF APPLICATIONS

Page 4: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

STATIC PARTITIONING

4

Deals well with heterogeneous workloads.

Headroom left for peak workloads will lead to poor overall resource

utilization.When resource requirements change

potentially costly reconfigurations.

Page 5: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

SHARED RESOURCES

5

Multiple frameworks can use the same cluster resources, with

their share adjusting dynamically.

Page 6: Mesos, DC/OS and the Architecture of the New Datacenter

© Gerard Julien/AFP

Run everything in containers!

Page 7: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

What about container management?

7

Page 8: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

What about container management?

8

Page 9: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

MESOS

9

Page 10: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

THE BIRTH OF MESOS

10

TWITTER TECH TALK

The grad students working on Mesos give a tech talk at Twitter.

March 2010

APACHE INCUBATION

Mesos enters the Apache Incubator.

Spring 2009

CS262B

Ben Hindman, Andy Konwinski and Matei Zaharia create “Nexus” as

their CS262B class project.

MESOS PUBLISHED

Mesos: A Platform for Fine-Grained Resource Sharing in the Data

Center is published as a technical report.

September 2010

December 2010

DC/OS

April 2016

Page 11: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

VISION

11

Sharing resources between batch processing frameworks• Hadoop• MPI• Spark

What does an operating system provide?• Resource management• Programming abstractions• Security• Monitoring, debugging, logging

Page 12: Mesos, DC/OS and the Architecture of the New Datacenter

© 2015 Mesosphere, Inc. All Rights Reserved.

• A top-level Apache project• A cluster resource negotiator• Scalable to 10,000s of nodes• Fault-tolerant, battle-tested• An SDK for distributed apps• Native Docker support

12

Apache Mesos

Page 13: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

ARCHITECTURE

13

Mesos Fundamentals

Now called Agent

Page 14: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

TWO-LEVEL SCHEDULING

14

Scheduler(s) AllocationUser

Wor

Resource

Launch

Page 15: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

TWO-LEVEL SCHEDULING

15

Page 16: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved. 16

YARN

Page 17: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

17

Page 18: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

18

Containers isolate tasks on the agent, but what about their communication?

The status quo in a Mesos cluster: one IP per agent.

Many containers per agent: they must share a single IP.

Agent

ContainerContainer

ContainerContainer

ContainerContainer

Page 19: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

19

This causes headaches:Port conflictsSecurity compromisesPerformanceService discovery

Agent

ContainerContainer

ContainerContainer

Web serviceWeb service

Page 20: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

20

This causes headaches:Port conflictsSecurity compromisesPerformanceService discovery

Agent

ContainerContainer

ContainerContainer

Test serviceProd. service

Page 21: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

21

This causes headaches:Port conflictsSecurity compromisesPerformanceService discovery

Agent

ContainerContainer

ContainerContainer

ContainerContainer

Page 22: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CONTAINER NETWORKING

22

This causes headaches:Port conflictsSecurity compromisesPerformanceService discovery

Agent

Container Container

Agent

Container Container

Page 23: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

IP PER CONTAINER

23

Segregating containers’ network traffic can solve these problems in an elegant,

maintainable way.

Page 24: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CALICO NETWORK ISOLATION

24

Agent

iptables

Kernel routing

Container

Calicomodul

Page 25: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

CALICO NETWORK ISOLATION

25

Page 26: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

DISTRIBUTED SYSTEMS SDK

26

“Developers will ask for an API not for a VM to

run their software”

Page 27: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

Distributed System SDK

27

Focus on application logic, not on data-center structure• Avoid networking-related code• Reuse of built-in fault-tolerance and high availability• Reuse distributed (infrastructure) frameworks (e.g.,

storage)

Mesos

Page 28: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

FIRST FRAMEWORK/SERVICE

28

Mesos

Utilize resources ResourceOffer

React on Tasks EventsTaskStatus Update

Scheduler Interface

Page 29: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

RENDLER

29

Mesos

Scheduler Interface

Examples implementations for different languages:C++, Go, Haskell, Java, Python, Scala

https://github.com/mesosphere/RENDLER

Page 30: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved. 30

Page 31: Mesos, DC/OS and the Architecture of the New Datacenter

Datacenter Operating System (DC/OS)

Distributed Systems Kernel (Mesos)

Big Data + Analytics EnginesMicroservices (in containers)

Streaming

Batch

Machine Learning

Analytics

Functions & Logic

Search

Time Series

SQL / NoSQL

Databases

Modern App Components

Distributed systems kernel to abstract resources

Ecosystem of frameworks & apps

Consistent architecture to run on top of kernel

User Interface (GUI & CLI)

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

Any Infrastructure (Physical, Virtual, Cloud)31

DC/OS ENABLES MODERN DISTRIBUTED APPS

Page 32: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved. 32

DC/OS is … ‣ 100% open source (ASL2.0)

• 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 33: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

http://dcos.io

33

Page 34: Mesos, DC/OS and the Architecture of the New Datacenter

© 2016 Mesosphere, Inc. All Rights Reserved.

QUESTIONS?

34

http://apache.mesos.orghttp://dcos.iohttp://mesosphere.com