Giter Site home page Giter Site logo

kestrelweb's Introduction

kestrelweb

A kestrel web ui.

Uses gunicorn + gevent for front end serving. Also uses gevent to make async requests to the kestrel servers for stats. It's still in early development so any suggestions or ideas are welcome.

https://github.com/matterkkila/kestrelweb

Dependencies:

  • decoroute >= 0.8.1
  • gevent >= 0.13.6
  • gunicorn >= 0.13.4
  • pykestrel >= 0.5.1
  • webob >= 1.2b2

Prerequisites

  • Python 2.7+
  • virtualenv (not really required, but it's a good idea)
  • libevent 1.4+ (for gevent)

Installing

git clone https://github.com/matterkkila/kestrelweb.git
cd kestrelweb
virtualenv --no-site-packages .
. bin/activate
pip install -r requirement.txt
python ./setup.py develop

Note: If libevent is installed in a non-standard location (I'm looking at you macports) you'll need to download the source distribution for gevent and install using something similar to:

pip install --no-install gevent  #download only
cd build/gevent
python ./setup.py install --libevent /opt/local

Configuring

Copy the local_settings.py.example to local_settings.py and edit the server list to reflect your queue servers.

cp local_settings.py.example local_settings.py

Running

gunicorn -k gevent -w 2 kestrelweb.main:App

Deploying

It's best to front gunicorn with something like nginx. It is also best to use nginx to serve the static files used by kestrelweb. Specifically anything in /static/* should be served by the proxy server.

Filtering

You can filter the queue list on any field/value. Strings only support the '=' and '!=' comparisons and use the re.match() function. Numeric types support <, >, <=, >=, !=, = and will do the standard numeric comparison.

Examples:

  • queue=my_queue
  • queue!=.*_prod$
  • server=10.0.10
  • total_items>=10
  • mem_items<=1024

Feedback & Questions

Any comments, questions, feel free to send me a message on github at https://github.com/matterkkila

All patches and pull requests are welcome.

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.