Mongrel Cluster Plugin

mongrel_clusterにrecoveryコマンドを追加します。

recovery?

mongrel_cluster.ymlからport情報などを読み込み
port毎にstatusをcheckします。
  1.process
  2.pid
  3.http response

checkがngの場合、該当portのみをrestartします。

SCM

http://asf.rubyforge.org/svn/branches/mongrel_cluster_recovery/

Install

gem install mongrel_cluster_recovery

help

mongrel_rails cluster::recovery -h

Example

#command line#
  cd #{RAILS_ROOT}
  mongrel_rails cluster::recovery --url /status/check

#cron#
  */10 * * * * root mongrel_rails cluster::recovery -C #{RAILS_ROOT}/config/mongrel_cluster.yml --url /status/check