Rutger
unread,Feb 26, 2011, 1:59:21 PM2/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bluepill
Hi all,
I'm using bluepill, like many, to monitor delayed_job. But when i
start bluepill cpu load will get between 5 and 10. I've struggled a
few days to get it to work and i'm curious if this high cpu load is
due to my bluepill config or just delayed_job running.
See my config below:
APP_ROOT='/home/myuser/webapps/myapp'
workers = 1
Bluepill.application("incult_delayed_job", :log_file => "#{APP_ROOT}/
log/bluepill.log") do |app|
(0...workers).each do |i|
app.process("delayed_job.#{i}") do |process|
process.working_dir = "#{APP_ROOT}"
process.start_grace_time = 30.seconds
process.stop_grace_time = 10.seconds
process.restart_grace_time = 10.seconds
process.start_command = "cd #{APP_ROOT} && RAILS_ENV=production
ruby script/delayed_job start -i #{i}"
process.stop_command = "cd #{APP_ROOT} && RAILS_ENV=production
ruby script/delayed_job stop -i #{i}"
process.pid_file = "#{APP_ROOT}/pids/delayed_job.#{i}.pid"
process.daemonize = true
process.checks :cpu_usage, :every => 10.seconds, :below => 5, :times
=> 3
process.uid = "myapp"
process.gid = "myapp"
end
end
end
If anyone does know or have the same experience i would like to hear
from you. I get very nervous having a system load like this all the
time :)
Regards,
Rutger