sudara / fitter_happier forked from atmos/fitter_happier
- Source
- Commits
- Network (6)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit c7aeb59cd2121830d0d981ab16818de65e51ee3c
tree 1569f40595f736df299836fdbb30dc08e3deb891
parent ca1529f39d786e4668ee89325d4ce288a462ccaf
tree 1569f40595f736df299836fdbb30dc08e3deb891
parent ca1529f39d786e4668ee89325d4ce288a462ccaf
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Thu Dec 11 11:39:06 -0800 2008 | |
| |
MIT-LICENSE | Sat Feb 02 13:02:20 -0800 2008 | |
| |
README.mdown | Thu Dec 18 11:58:57 -0800 2008 | |
| |
Rakefile | Sat Feb 02 13:02:20 -0800 2008 | |
| |
init.rb | Tue Nov 25 10:28:15 -0800 2008 | |
| |
install.rb | Sat Feb 02 13:02:20 -0800 2008 | |
| |
lib/ | Mon Dec 22 23:49:39 -0800 2008 | |
| |
tasks/ | Sat Feb 02 13:02:20 -0800 2008 | |
| |
test/ | Wed Dec 17 14:33:50 -0800 2008 | |
| |
uninstall.rb | Sat Feb 02 13:02:20 -0800 2008 |
README.mdown
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
