GithubHelp home page GithubHelp logo

grange-server's Introduction

grange-server

A read-only range server frontend to grange. See there for documentation of concepts and query language.

Cluster and group data is specified in YAML files.

Installation

  1. Setup your go environment if needed

     mkdir $HOME/go
     export GOPATH=$HOME/go
    
  2. Install grange-server and erg client

     go get -v -u github.com/square/grange-server
     go get -v -u github.com/square/erg
    

Usage

Put some range YAML files in clusters/, then:

$GOPATH/bin/grange-server --port=8888 $GOPATH/src/github.com/square/grange-server/grange.gcfg

Simple expansion (with erg client):

erg -v 1..2

Find all clusters that have type key set to "mysql":

erg -v '%{has(TYPE;mysql)}'

Features

  • Read-only serving of cluster YAML files on disk.
  • -parse option to dry-run parse source files and not start the server. Will return non-zero exit code if any warnings were emitted.
  • Reloads configuration file in response to HUP signal. Allows dynamic log level and cluster changes.
  • Can report HTTP response metrics to statsd.

Format

See the clusters directory for sample YAML files. At minimum, your directory should contain a GROUPS.yaml. See grange.gcfg for a sample configuration.

grange-server's People

Contributors

xaviershay avatar drcapulet avatar r4um avatar toppur avatar syamp avatar

Watchers

James Cloos 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.