mesos: cluster management system

21
Cluster Management System mesos.apache.org

Upload: erhan-bagdemir

Post on 06-Jan-2017

299 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Mesos: Cluster Management System

Cluster Management Systemmesos.apache.org

Page 2: Mesos: Cluster Management System

• to understand target problem domain.

• to know the operating system for the Datacenter.

• to gain an architectural overview of a Mesos cluster.

• to learn how to run applications in a Mesos cluster.

• to understand the Service Discovery & Load Balancing

• to get an overview on Mesos Frameworks.

http://mesos.apache.org Agenda

Your Expectations

Page 3: Mesos: Cluster Management System

Mesos is the name of the cluster management framework and the Apache Project.

Mesosphere (Mesosphere, Inc.) is the company which is commercializing the open source project Apache Mesos, and provides consulting services.

http://mesos.apache.org Mesos

Mesos vs Mesosphere

Page 4: Mesos: Cluster Management System

http://mesos.apache.org Problem Domain

Static Partitioning

Page 5: Mesos: Cluster Management System

http://mesos.apache.org Problem Domain

Static partitioning Dynamic resource sharing

Resource Management

Page 6: Mesos: Cluster Management System

http://mesos.apache.org Problem Domain

Unified API

Page 7: Mesos: Cluster Management System

• Realignment of the partitions in the clusters means un-deploy/redeploy of the running software on the instances and requires error-prone and tedious manual effort.

• It is hard to predict the workload and fluctuations of the load makes an efficient resource utilisation impossible.

• Changes in infrastructure may cause changes in the applications so the coupling between Developers and Devops does remain strong.

http://mesos.apache.org Problem Domain

Problem Description

Page 8: Mesos: Cluster Management System

Datacenter as a Computer

Page 9: Mesos: Cluster Management System

• Process scheduling.

• Fairly resource (on the same CPU, Memory, Disk, etc) sharing.

• Package managers (aptitude, yum, etc.)

• Unified API between apps and hardware.

http://mesos.apache.org Datacenter OS

DC as a Computer

• Cluster-wide application scheduling.

• Fairly resource sharing in a distributed environment.

• Docker as package manager tool.

• Unified API between apps and hardware.

Operating Systems Mesos as a DC OS

Page 10: Mesos: Cluster Management System

• orchestrates the infrastructure so that it can be extended by adding new hardware or shrunk to downscale, dynamically.

• abstracts the underlying infrastructure while providing a unified API to the applications.

• employs the LXC (Linux Containers) interface to maximize resource utilisation via operating system level virtualization (like Docker or using Docker).

http://mesos.apache.org Problem Domain

Apache Mesos

Page 11: Mesos: Cluster Management System

http://mesos.apache.org Architecture

Architecture

Coordination over Zookeeper

Mesos CLI

Ports are ranged resources

Page 12: Mesos: Cluster Management System

http://mesos.apache.org Datacenter OS

How does it work ?

Mesos Framework = Scheduler + Executor

Page 13: Mesos: Cluster Management System

http://mesos.apache.org Datacenter OS

How does it work ?

Resource negotiation between components

Page 14: Mesos: Cluster Management System

• You can develop your own custom Frameworks for Mesos.

• or you can deploy open source Mesos Frameworks like Spark, Hadoop, etc.

• or, getting even better, you can deploy Docker containers.

• Mesos can orchestrate Docker containers in a Mesos cluster, as well.

http://mesos.apache.org Frameworks

Applications on Mesos

Page 15: Mesos: Cluster Management System

http://mesos.apache.org Frameworks

Mesos Frameworks

OSS Frameworks as Mesos Frameworks

Page 16: Mesos: Cluster Management System

http://mesos.apache.org Architecture

Marathon

Page 17: Mesos: Cluster Management System

http://mesos.apache.org Marathon

Marathon

• Marathon is the PaaS on Apache Mesos.

• Marathon provides REST API to automate your workflows.

• Marathon UI allows Dev/Ops to manage the frameworks by point-n-click.

Page 18: Mesos: Cluster Management System

http://mesos.apache.org Architecture

Load Balancing thru HAProxy

User Requests

Page 19: Mesos: Cluster Management System

http://mesos.apache.org Architecture

Service Discovery

User Requests

Mesos DNS provides its clients a

REST endpoint for Service Discovery

Page 20: Mesos: Cluster Management System

http://mesos.apache.org Hands-on

Hands-on

• Introduction: Mesos Dashboard

• Introduction: Marathon UI and REST API.

• Case Study: Elastic Jenkins on Mesos.

Page 21: Mesos: Cluster Management System

http://mesos.apache.org End

QA

any Questions?