Skip to content
/ babe Public
forked from PhonePe/babe

Management script for marathon. Named after the lead character in Marathon Man

Notifications You must be signed in to change notification settings

ismnitesh/babe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Management script for marathon. Named after the lead character in Marathon Man

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%