Code Monkey home page Code Monkey logo

mentos's Introduction

mentos - A Pure Python implementation of a Mesos Scheduler/Executor driver

Long Lasting Mesos freshness for Python

Build Status Coverage Status

The main goal is to provide a low-complexity and feature rich support for pure python Mesos Frameworks, but also to learn things.

There be dragons

mentos is still quite experimental right now. No production frameworks have been built using it.

Notable Features

  • Pure python so no C++ meddling
  • Full featured Zookeeper and Redirect based Master detection
  • Dict based for simplicity
  • Task scheduling should be quite fast due to the asynchronous nature of the networking engine
  • Nice policy based reconnect and retry system
  • Fancy Testing and Development enviroment based on docker-compose

Install

Not on pypi right now. Install from this repository.

Tested Python Versions:

  • 2.7
  • 3.5
  • 3.6

Requirements:

  • Mesos > 0.28
  • Zookeeper

Development

Run docker-compose up to get a working instalation of Mesos going.

Requirements:

  • docker
  • docker-compose > 1.6.0

Examples

An example Mesos Scheduler and Executor can be found in the examples folder. It runs one task and then starts declining offers. The Task basically transmits and prints a message. Excuse the magic.

Tests

  • utils
  • states
  • interface
  • retry
  • exceptions
  • connection
  • subscription
  • executor
  • scheduler

Documentation

Not there yet

Outlook

The long term goal is for this to serve as a base for Satyr and other more high level Python based frameworks.

Acknowledgements

This has been heavily based on zoonado and was influenced by Satyr and PyMesos and shares some utility code with both. The RecordIO format parsing was lifted from mrocklins gist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.