public
Description: A Rails Plugin for adding a simple health check to your application
Clone URL: git://github.com/atmos/fitter_happier.git
name age message
file MIT-LICENSE Sat Feb 02 13:02:20 -0800 2008 initial import [atmos]
file README Sat Feb 02 13:31:11 -0800 2008 reformatted [atmos]
file Rakefile Sat Feb 02 13:02:20 -0800 2008 initial import [atmos]
file init.rb Sat Feb 02 13:24:38 -0800 2008 add a README [atmos]
file install.rb Sat Feb 02 13:02:20 -0800 2008 initial import [atmos]
directory lib/ Tue May 06 00:33:09 -0700 2008 adding a patch from grantr to silence everythin... [atmos]
directory tasks/ Sat Feb 02 13:02:20 -0800 2008 initial import [atmos]
directory test/ Tue May 06 00:35:53 -0700 2008 slight test fixup to tests so it runs in a rail... [atmos]
file uninstall.rb Sat Feb 02 13:02:20 -0800 2008 initial import [atmos]
README
FitterHappier
=============

This is an insanely silly plugin given its simplicity, but I keep telling EY 
customers the same thing over and over.  This is a plugin you install that 
provides a controller that's perfect for monitoring mongrel availability.  A 
lot of people would give us their landing page and that blocks mongrels longer 
than needed.  This disables sessions, layouts, and logging while rendering a 
simple string you can checksum against.

Installation
============
% cd vendor/plugins
% git clone git@github.com:atmos/fitter_happier.git

Examples
========

  Monit
  =====
  You can do simple checks with monit like this:

  if failed host 127.0.0.1 port 5000
    protocol HTTP request /fitter_happier with checksum 6684951cdf1757cc708898b4ee3526c4 then restart

  Keepalived/LVS
  ==============
  You can also do this in a keepalived/LVS setup:

  virtual_server 169.254.y.z 80 {
    delay_loop 15
    lb_algo lc
    lb_kind NAT
    nat_mask 255.255.255.0
    persistence_timeout 0
    protocol TCP
    sorry_server 127.0.0.1 80
    virtualhost www.myfacetube.com
    real_server 10.0.1.34 80 {
      weight 1
      HTTP_GET {
        url {
          path /fitter_happier
          status_code 200
        }
        connect_port 80
        connect_timeout 5
        nb_get_retry 20
        delay_before_retry 2
      }
    }
    real_server 10.0.1.35 80 {
      weight 1
      HTTP_GET {
        url {
          path /fitter_happier
          status_code 200
        }
        connect_port 80
        connect_timeout 5
        nb_get_retry 20
        delay_before_retry 2
      }
    }
  }

Copyright (c) 2008 atmos, released under the MIT license