Monitoring Rails Application in Prouction

3 views
Skip to first unread message

matt

unread,
Jun 20, 2007, 6:33:00 PM6/20/07
to Ruby on Rails: Talk
Anyone have any suggested tools or plugins to monitor a rail
application in production?

Pat Maddox

unread,
Jun 20, 2007, 6:57:00 PM6/20/07
to rubyonra...@googlegroups.com
On 6/20/07, matt <MDei...@gmail.com> wrote:
>
> Anyone have any suggested tools or plugins to monitor a rail
> application in production?
>
>
> >
>

What kind of monitoring do you need to do? We use nagios to monitor uptime.

Pat

Benjamin Curtis

unread,
Jun 20, 2007, 7:32:20 PM6/20/07
to rubyonra...@googlegroups.com
Many people use monit with success. This also looks promising:
http://god.rubyforge.org/

--
Benjamin Curtis
http://www.bencurtis.com/ -- blog
http://agilewebdevelopment.com/rails-ecommerce -- build e-commerce
sites with Rails

matt

unread,
Jun 21, 2007, 1:25:17 PM6/21/07
to Ruby on Rails: Talk
I need to monitor the 'health' of the application more then just
uptime. What do others monitor in production rails applications
besides uptime?
Matt

On Jun 20, 5:57 pm, "Pat Maddox" <perg...@gmail.com> wrote:

Jodi Showers

unread,
Jun 21, 2007, 1:33:05 PM6/21/07
to rubyonra...@googlegroups.com

I've not tried many, but monit(already mentioned) is pretty slick -
plus it provides a dsl to heal broken services.

#8000
check process mongrel-8000 with pidfile /var/www/the-soup/shared/log/
mongrel.8000.pid
start program = "/usr/local/bin/ruby /usr/bin/mongrel_rails
start --user deploy --group mongrel -e production -d -c /var/www/the-
soup/current/ -p 8000 -P /var/www/the-soup/current/log/mongrel.
8000.pid -r /var/www/the-soup/current/public/"
stop program = "/usr/local/bin/ruby /usr/bin/mongrel_rails stop -
c /var/www/the-soup/current/ -p 8000 -P /var/www/the-soup/current/log/
mongrel.8000.pid"

if totalmem > 85.0 MB for 5 cycles then restart
if failed port 8000 protocol http
with timeout 10 seconds
then restart
group www

Plus also provides an http service for stats monitoring and control.

http://www.tildeslash.com/monit/

Cheers,
Jodi
General Partner
The nNovation Group inc.
www.nnovation.ca/blog

on-innovation.gif
Reply all
Reply to author
Forward
0 new messages