GithubHelp home page GithubHelp logo

thbar / fitter-happier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmoses/fitter_happier

0.0 2.0 1.0 135 KB

A Rails Plugin for adding a simple health check to your application

License: MIT License

Ruby 100.00%

fitter-happier's Introduction

FitterHappier

FitterHappier provides actions for monitoring a rails site and 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

Add the following to your gemfile

gem 'fitter-happier'

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 davekrupinski avatar jmoses avatar logankoester avatar mocoso avatar tashimi avatar thbar avatar wolfpakz avatar zspencer avatar

Watchers

 avatar  avatar

Forkers

shedd

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.