Developing Frameworks for Apache Mesos

The Presentation inside:

Slide 0

Developing Frameworks for Apache Mesos

Slide 1

Joe Stein CEO of Elodina a big data as a service platform built on top open source software. The Elodina platform enables customers to analyze data streams and programmatically react to the results in real-time. We solve today’s data analytics needs by providing the tools and support necessary to utilize open source technologies. As users, contributors and committers, Elodina also provides support for frameworks that run on Mesos including Apache Kafka, Exhibitor (Zookeeper), Apache Storm, Apache Cassandra and a whole lot more! LinkedIn: Twitter : @allthingshadoop

Slide 2

What goes on Mesos? Framework = (Scheduler + Executor) What does it look like without a scheduler? We can do better using a scheduler! Schedulers working together. Framework API & Examples. Overview

Slide 3

What goes on Mesos?

Slide 4

Slide 5

Many, many things

Slide 6

Anything can be run on Mesos with Marathon or Aurora

Slide 7

Framework = (Scheduler + Executor)

Slide 8

Slide 9


Slide 10


Slide 11


Slide 12

Scheduler Provides the operational automation for a Kafka Cluster. Manages the changes to the broker's configuration. Exposes a REST API for the CLI to use or any other client. Runs on Marathon for high availability. Broker Failure Management “stickiness” Executor The executor interacts with the kafka broker as an intermediary to the scheduler Scheduler & Executor

Slide 13

CLI & REST API scheduler - starts the scheduler. add - adds one more more brokers to the cluster. update - changes resources, constraints or broker properties one or more brokers. remove - take a broker out of the cluster. start - starts a broker up. stop - this can either a graceful shutdown or will force kill it (./ help stop) rebalance - allows you to rebalance a cluster either by selecting the brokers or topics to rebalance. Manual assignment is still possible using the Apache Kafka project tools. Rebalance can also change the replication factor on a topic. help - ./ help || ./ help {command}

Slide 14

Launch 20 brokers in seconds ./ add 1000..1019 --cpus 0.01 --heap 128 --mem 256 --options ./ start 1000..1019

Slide 15

What does it look like without a scheduler?

Slide 16

without a scheduler

Slide 17

without a scheduler

Slide 18

without a scheduler

Slide 19

without a scheduler

Slide 20

without a scheduler

Slide 21

We can do better using a scheduler

Slide 22

with a scheduler

Slide 23

with a scheduler

Slide 24

with a scheduler

Slide 25

with a scheduler

Slide 26

with a scheduler

Slide 27

Schedulers working together

Slide 28

Slide 29

Slide 30

Slide 31

Framework API & Examples

Slide 32

Mesos Protos Everything is good to understand but here is a good place to start FrameworkInfo TaskInfo TaskState MasterInfo SlaveInfo

Slide 33

Mesos Framework Development Guide Scheduler API registered, reregistered, disconnected resourceOffers, offerRescinded, statusUpdate, frameworkMessage slaveLost, executorLost, error Executor API registered, reregistered, disconnected launchTask, killTask, frameworkMessage

Slide 34

Task Reconciliation It is the responsibility of Mesos (scheduler driver / Master) to ensure that the framework is notified when a disconnection, and subsequent (re-)registration occurs. At this point, the scheduler should perform task state reconciliation.

Slide 35

Language Bindings c++ > python > java > go > clojure > scala >

Slide 36

Rendler A rendering web crawler for Apache Mesos.

Slide 37

Questions? Joe Stein