Introduction to DC/OS BALUG, 19 June...

29
© 2017 Mesosphere, Inc. All Rights Reserved. 1 BALUG, 19 June 2018 Introduction to DC/OS Elizabeth K. Joseph @pleia2

Transcript of Introduction to DC/OS BALUG, 19 June...

Page 1: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 1

BALUG, 19 June 2018

Introduction to DC/OS

Elizabeth K. Joseph@pleia2

Page 2: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 2

❏ Developer Advocate at Mesosphere❏ 15+ years working in open source

communities❏ 10+ years in Linux systems

administration and engineering roles❏ Founder of OpenSourceInfra.org❏ Author of The Official Ubuntu Book

and Common OpenStack Deployments

Elizabeth K. Joseph, Developer Advocate

Page 3: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 3

You no longer have a single server with everything running on it.

You have a multi-tier system with various layers and owners down the stack:

❏ Hardware❏ Network❏ Resource abstraction❏ Scheduler❏ Containers❏ Virtual network❏ Application❏ ...

What are Cloud-Native Systems?

Page 4: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 4

Cloud-native scopes

Application

Container

Host

Page 5: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved.

ServiceApp ServiceServiceAppApp

OS

5

Cloud-Native with Containers

OS OS

Machine

Infrastructure

Machine Machine

Container Runtime Container Runtime Container Runtime

ServiceService ServiceServiceServiceService

Page 6: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 6

Apache Mesos:The datacenter kernel

http://mesos.apache.org/

Page 7: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved.

• A cluster resource negotiator

• A top-level Apache project• Scalable to 10,000s of

nodes• Fault-tolerant, battle-tested• An SDK for distributed apps• Native Docker support

7

Building block of the modern internet

http://mesos.apache.org/documentation/latest/powered-by-mesos/

Page 8: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 8

THE BIRTH OF MESOS

TWITTER TECH TALKThe grad students working on Mesos

give a tech talk at Twitter.

March 2010

APACHE INCUBATIONMesos enters the Apache Incubator.

Spring 2009

CS262BBen Hindman, Andy Konwinski and

Matei Zaharia create “Nexus” as their CS262B class project.

MESOS PUBLISHEDMesos: 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 9: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 9

MULTIPLEXING OF DATA, SERVICES, USERS, ENVIRONMENTS

Typical Datacentersiloed, over-provisioned servers,

low utilization

Apache Mesosautomated schedulers, workload multiplexing onto the

same machines

mySQL

microservice

Cassandra

Spark/Hadoop

Kafka

Page 10: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

10

Page 11: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 11

● Mesos can’t run applications on its own.

● A Mesos framework is a distributed system that has a scheduler.

● Schedulers like Marathon start and keep your applications running. A bit like a distributed init system.

● Learn more at https://mesosphere.github.io/marathon/

Marathon

Page 12: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

12

Page 13: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 13

● Rapid deployment● Some service isolation● Dependency handling● Container image repositories

Containers

Page 14: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 14

CONTAINERSCHEDULING

RESOURCE MANAGEMENT

SERVICE MANAGEMENT

- Load Balancing- Readiness Checking

CONTAINER ORCHESTRATION

Page 15: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 15

DC/OS brings it all together

● Resource management● Task scheduling● Container orchestration● Logging and metrics● Network management● “Universe” catalog of pre-configured apps

(including Apache Spark, Apache Kafka…), browse at http://universe.dcos.io/

● And much more https://dcos.io/

Page 16: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

16

DC/OS is … ● 100% open source (ASL2.0)● An umbrella for ~30 OSS projects

+ Roadmap and designs+ Documentation and tutorials

● Not limited in any way● Familiar, with more features

+ Networking, Security, CLI, UI, Service Discovery, Load Balancing, Packages, ...

Page 17: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 17

DC/OS Architecture Overview

Security &GovernanceContainer Orchestration Monitoring & Operations User Interface & Command Line

HDFS Jenkins Marathon Cassandra Flink

Spark Docker Kafka MongoDB +30 more...

DC/OS

Services & Containers

ANY INFRASTRUCTURE

Page 18: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 18

Web-based GUI

https://dcos.io/docs/latest/usage/webinterface/

Interact with DC/OS (1/2)

Page 19: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 19

CLI tool

https://dcos.io/docs/latest/usage/cli/

API

https://dcos.io/docs/latest/api/

Interact with DC/OS (2/2)

Page 20: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 20

Catalog of Applications (Universe)

Page 21: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 21

Install an Application

Page 22: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 22

Application JSON

Page 23: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 23

Building a Real-World Pipeline

Page 24: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved.

MODERN APPLICATION -> FAST DATA BUILT-IN

Data Ingestion

Request/Response

Devices

Client

Sensors

MessageQueue/Bus

Microservices Distributed Storage

Analytics(Streaming) Use Cases:

● Anomaly detection

● Personalization

● IoT Applications

● Predictive Analytics

● Machine Learning

Page 25: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved.

The SMACK Stack

Data Ingestion

Request/Response

Devices

Client

Sensors

Use Cases:

● Anomaly detection

● Personalization

● IoT Applications

● Predictive Analytics

● Machine Learning

MessageQueue/Bus

Microservices Distributed Storage

Analytics(Streaming)

Page 26: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2016 Mesosphere, Inc. All Rights Reserved. 26

Metrics & Monitoring- Collecting metrics- Routing events- Downstream processing

- Alerting- Dashboards- Storage (long-term retention)

Logging- Scopes- Local vs. Central- Security considerations

Keeping things running: Day 2 Operations

Page 27: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2016 Mesosphere, Inc. All Rights Reserved. 27

Maintenance - Cluster Upgrades- Cluster Resizing- Capacity Planning- User & Package Management- Networking Policies- Auditing- Backups & Disaster Recovery

Troubleshooting- Debugging

- Services- System- Access

- Tracing- Chaos Engineering

Day 2 Operations con’t

Page 28: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 28

Demohttps://dcos.io/demos/

Page 29: Introduction to DC/OS BALUG, 19 June 2018queenleia.com/presentations/2018/BALUG_-_Introduction_to...THE BIRTH OF MESOS TWITTER TECH TALK The grad students working on Mesos give a tech

© 2017 Mesosphere, Inc. All Rights Reserved. 29

Questions? Feedback?

Elizabeth K. JosephTwitter: @pleia2

Email: [email protected]

@dcos

[email protected]

/dcos/dcos/examples/dcos/demos

chat.dcos.io