Skip to content

Commit

Permalink
add monitoring checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nighoo committed Dec 20, 2015
1 parent 33ee70e commit 260377a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/eye.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

monitor_children do
stop_command "kill -QUIT {PID}"
check :cpu, below: 40, times: [3, 5]
check :memory, every: 30.seconds, below: 500.megabytes, times: 3
end
end

Expand All @@ -33,6 +35,7 @@
daemonize true
pid_file "tmp/pids/sidekiq#{i}.pid"
stop_signals [:USR1, 0, :TERM, 10.seconds, :KILL]
check :memory, every: 30.seconds, below: 500.megabytes, times: 3
end
end
end
Expand Down

0 comments on commit 260377a

Please sign in to comment.