Code Monkey home page Code Monkey logo

fitter_happier's Introduction

FitterHappier

FitterHappier is a Rails plug-in that provides actions for monitoring site and/or database availability. FitterHappier's monitoring controller disables unnecessary Rails features, like sessions, layouts, and logging, for lightning-fast monitoring URIs.

FitterHappier provides three monitoring URIs

% curl localhost:3000/fitter_happier
FitterHappier Site Check Passed

% curl localhost:3000/fitter_happier/site_check
FitterHappier Site Check Passed @ Wed, 17 Dec 2008 14:27:47 -0800

% curl localhost:3000/fitter_happier/site_and_database_check
FitterHappier Site and Database Check Passed @ Wed, 17 Dec 2008 14:27:57 -0800
Schema Version: 20081217141904

Installation

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

Uptime Monitoring

See EngineYard's support guide on uptime monitoring for your rails application

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 15b8a1ee66d740fbfc00297684bb5430 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

fitter_happier's People

Contributors

atmos avatar logankoester avatar davekrupinski avatar

Watchers

Brian Shirai avatar Wilson Bilkovich avatar Christopher Rigor avatar Wayne Seguin avatar Paul Campbell avatar Erik Jones avatar Eduardo Tongson avatar Ken Rimple avatar Neil Galvin avatar ara.t.howard avatar Andrea O. K. Wright avatar Jim Neath avatar Jen-Mei Wu avatar  avatar Jacob Burkhart avatar Kevin Rutten avatar John Trupiano avatar Kirk Haines avatar Thomas E Enebo avatar Chirag Singhal avatar Dennis J. Bell avatar The Working Group Inc avatar Lance Vaughn avatar Jason Hansen avatar Keith Gaddis avatar Michael Taus avatar Amy Woodward avatar Shawn Hermann avatar David Coallier avatar Helgi Þormar Þorbjörnsson avatar Mike Heffner avatar Eamon Leonard avatar Dennis Walters avatar David Keener avatar Ralph Bankston avatar Radamanthus Batnag avatar Evan Machnic avatar ugurarpaci avatar K Shae Murphy avatar Jamie Bleichner avatar Ramon Marques avatar Gabe Monroy avatar PJ avatar Mostafa Kenawey avatar Zlatko Unger avatar  avatar colleen avatar Robert avatar  avatar Josh avatar Ronan Flynn-Curran avatar Eugene Howe avatar Jane avatar Britt Mileshosky avatar Denis Diachkov avatar James Cloos avatar Mauro Calvi avatar Eben Goodman avatar  avatar Mark Lynn avatar Matt Jones avatar Paul Tingle avatar  avatar Ryan Gurney avatar  avatar  avatar Mike Davis avatar  avatar Mal Knox avatar  avatar Elaine Greenberg avatar Dave McAllister avatar Jack Francis avatar Keri Meredith avatar Edward Chiu avatar Zhen Yin avatar Tim Romero avatar Carlos avatar Takahiro Imanaka avatar Daniel Valfre avatar Diego Ragazzi avatar  avatar Stephanie avatar Kevin Phelps avatar  avatar Joshua Anderson avatar Jennifer Chow avatar  avatar  avatar Callum Pease avatar  avatar  avatar  avatar  avatar Josh Pederson avatar Artsiom Kuts avatar Karishma Haji avatar Jeff Reich avatar  avatar Rupika Kapoor avatar

Forkers

epictetus

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.