Add NewRelic monitoring to autostart and watching
This commit is contained in:
parent
e966e523e9
commit
09e5a1e4d6
|
@ -14,6 +14,15 @@ Bluepill.application(app_name) do |app|
|
||||||
process.pid_file = File.join(app.working_dir, 'tmp', 'pids', 'delayed_job.pid')
|
process.pid_file = File.join(app.working_dir, 'tmp', 'pids', 'delayed_job.pid')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
app.process("newrelic") do |process|
|
||||||
|
process.start_grace_time = 10.seconds
|
||||||
|
process.stop_grace_time = 10.seconds
|
||||||
|
process.restart_grace_time = 10.seconds
|
||||||
|
|
||||||
|
process.start_command = "/usr/bin/env /usr/local/bin/nrsysmond -c /etc/newrelic/nrsysmond.cfg"
|
||||||
|
process.pid_file = File.join(app.working_dir, 'tmp', 'pids', 'newrelic.pid')
|
||||||
|
end
|
||||||
|
|
||||||
app.process("unicorn") do |process|
|
app.process("unicorn") do |process|
|
||||||
process.start_grace_time = 8.seconds
|
process.start_grace_time = 8.seconds
|
||||||
process.stop_grace_time = 5.seconds
|
process.stop_grace_time = 5.seconds
|
||||||
|
|
Loading…
Reference in New Issue