Code Monkey home page Code Monkey logo

tyrant's Introduction

Tyrant

works on mesos 0.18.2+

Build Status Coverage Status

Features:

  • High availability by master and standby
  • Simple and clean web ui
  • Restful api support
  • No need to write mesos executor, just write shell scripts
  • Killing tasks
  • Realtime task status
  • Support webhook
  • Authentication by ldap

Usage:

	1. start mesos master and slaves. and zookeeper
	   zkServer.sh start
	   mesos-master.sh --zk=zk://host:port/mesos
	   mesos-slave.sh --master=zk://host:port/mesos

	2. ./tyrant --master=zk://host:port/mesos

	3. open browser http://localhost:9090/v2/job

Api description

	1. Create job
		post to url: /job, body is json object
		
		{
			"name"`           //string 512, unique, must exist
			"executor"`       //string 4096, must exist
			"executor_flags"` //string 4096, must exist
			"owner"`          //string, must exist
			"uris"`           //string 2048
			"schedule"`       //string 2048, can be empty
			"hook"`           //string, can be empty
		}
		
		return:
			full job description(json format)

	2. Run job
		post to url: /job/run/:jobId, jobId is return when you create job
		
		return:
			task description(json format)
			{
			    data:taskId       	    //string, task id
			    ret:					//ret code, 0 mean ok
			}

Job List View:

Snapshot1

Task Running Status View:

Snapshot2

LICENSE

Tyrant is distributed under the terms of the MIT License. 

tyrant's People

Contributors

huangdongxu avatar ngaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.