Git Product home page Git Product logo

babe's Introduction

Babe

A script to manage services running on Marathon.

Supported Operations

The following operations are supported:

  • list: List all running processes
  • info: Get information about a running service
  • deploy: Deploy a service to marathon
  • restart: Restart a service gracefully by taking nodes OOR on Ranger while maintaining capacity
  • scale: Scale a service up or down by taking it OOR on Ranger gracefully
  • suspend: Suspend a service
  • kill: Suspend a service instance
  • destroy: Destroy a service
  • decommission: Decommission a Mesos slave

Options and documentation

There is no separate documentation. The service ecosystem can be understood from reading the following presentation.

Use the following to get options:

babe -h

Use babe -h to get command specific options.

Installation

Run the following to install the required dependencies:

sudo easy_install argparse requests time tabulate colored

Sample invocation

babe -e marathon.yourdomain.com:8080 list

If you get UnicodeEncodeError exception, add export PYTHONIOENCODING=utf-8:surrogateescape in your .bashrc file and restart the terminal.

Email option

babe -C path_to_config_file -e marathon.yourdomain.com:8080 <yourAction>
  • default config file path is /etc/babe/config.yml
  • if config is not present at default path or you have not added your custom config file then email option is disabled.

License

Apache 2

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.