delayed_job
サーバーが壊れた場合、サーバーはmonit
自動的に再起動しdelayed_job
ますか?
1 に答える
2
これを行うにはmonitに指示する必要があります...私は次の設定を使用します:
check process delayed_job with pidfile /srv/rails/restorm_com/current/tmp/pids/delayed_job.pid
start program = "/bin/su -c 'RAILS_ENV=production /srv/rails/restorm_com/current/script/delayed_job start' rails"
stop program = "/bin/su -c 'RAILS_ENV=production /srv/rails/restorm_com/current/script/delayed_job stop' rails"
if cpu > 80% for 3 cycles then alert
if loadavg(5min) greater than 2 for 3 cycles then alert
于 2010-06-22T19:19:05.813 に答える