Skip to main content

Fresh Python Mesos HTTP Scheduler and Executor

Project description

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

  • [x] utils
  • [x] states
  • [x] interface
  • [x] retry
  • [x] exceptions
  • [x] connection
  • [x] subscription
  • [x] executor
  • [x] 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mentos, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size mentos-0.1.8-py2.py3-none-any.whl (21.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mentos-0.1.8.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page