0.0
No commit activity in last 3 years
No release in over 3 years
Imagine a semaphore that shows each worker in a web app, busy in red, and available in green.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.8.3
>= 0
~> 3.12

Runtime

>= 0
 Project Readme

street_lights¶ ↑

Watch your app as street lights.

Imagine a semaphore that shows each worker in a web app, busy in red, and available in green.

Philosophy¶ ↑

The gem provides a class that follows the rack interface, so basically all you need to do is include the gem, and add the ‘StreetLights’ constant to your rack stack.

The rack, would simple create files each would be named with the current worker’s Process.id, in the file we would have the same pid wrapped in fancy ansi.

unix-watch shell command is neat, the problem there is that most distros have old versions of watch that escape ansi. and we loose all the neat coloring feature.

So Additionally I’ll be bundling an executable called ‘street_lights’ that would do what ‘watch’ does but with ansi.

While all these is true, the whole thing is meant for debugging and having a simple visual idea on how saturated an app could be.

Specially when running heavy and or stressing processes at peak hours.

Right now, it does some file writting which might not be the best and most performant way, but it would give you an idea of what is going on. I might change this to a unix-socket or something into the future.

Should work, with anything, thing, web-brick, unicorn, synatra and all those.

Sorry windows users!

Hope you find it useful :)

Usage¶ ↑

require 'rubygems'
require 'street_lights'

my_rack_stack << StreetLights

Copyright © 2012 kazuyoshi tlacaelel. See LICENSE.txt for further details.