A script to manage services running on Marathon.
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
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.
Run the following to install the required dependencies:
sudo easy_install argparse requests time tabulate colored
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.
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.
Apache 2