Giter VIP home page Giter VIP logo

ganger's Introduction

Ganger - A simple automate tool

Ganger is a simple automate tool. It can automate deploy packages, launch target processes, update packages deployment(kill the old process and launch the new one), restart target processes and monitor the status of target process.

It saves your time for development, and make it easier to deploy your systems on many target machines simultaneously.

Features

Automatation: help you do some automate tasks, for example: deploy packages, start processes, stop processes and update deployments etc. (Note: deploy action ONLY support compressed binary executables(.tar.gz) currently.)

Lifecycle management: you can start, stop, restart or update the target process.

Dependence management: we organize the package as a directed graph with no cycles, when a process of a package crashed or started, the processes of the package which depend on it will be notified. Automate action will operate on packages as the topological order of the dependence graph(or reverse order for actions similar to stop).

Status monitor: monitor the target process's status.

Getting Started

Clone this repo

git clone git://github.com/netease/ganger.git

and run

ant release

this will create two files in directory target/release: auto-master-x.x.x.tar.gz for master node, auto-slave-x.x.x.tar.gz for slave node.

Before doing the actual work, you need to setup a ZooKeeper instance, and use the address to start master and slave nodes.

Start ganger in three steps: 1) start the ZooKeeper instance; 2) start the slave nodes by using bin/auto-slave.sh; 3) start the master node by using bin/ganger.sh.

Use ganger as following:

load ../sample/xmpp.properties  # load a project configuration file
deploy xmpp  # deploy the packages defined by this project 
launch xmpp  # and lauch them

See here for a sample configuration format for a project.

Document

See user manual here

ganger's People

Contributors

zhihuij avatar

Watchers

wanglianping 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.