eye_methods.rb revision cb79743f740eb48d19ddd359895d190f8ec3563b
sidekiq_pid_file = "#{proxy.env['PID_DIR']}/sidekiq-#{name}.pid"
sidekiq_log_file = "log/#{name}.log"
-e #{proxy.env['RAILS_ENV']}
-c #{concurrency}
--pidfile #{sidekiq_pid_file}
--logfile #{sidekiq_log_file}
#{queues_param}).join(' ')
daemonize true
stop_signals [:USR1, 0, :TERM, 10.seconds, :KILL]
# Give the process some time for startup. Booting Rails can take some time.
# Ensure the CPU is below 30% the last 5 times checked.
check :cpu, every: 30.seconds, below: 100, times: 5
# Ensure that the used memory is below the limit the last 5 times checked.
check :memory, every: 30.seconds, below: 300.megabytes, times: 5
end
end
hets_pid_file = "#{proxy.env['PID_DIR']}/hets-#{port}.pid"
hets_log_file = "log/hets-#{port}.log"
daemonize true
stop_signals [:TERM, 10.seconds, :KILL]
# Give the process some time for startup.
# Ensure the CPU is below 30% the last 5 times checked.
# check :cpu, every: 30.seconds, below: 100, times: 5
# Ensure that the used memory is below the limit
# at least 2 out of the last 5 times checked.
# check :memory, every: 30.seconds, below: 3000.megabytes, times: [2, 5]
end
end
"#{hets_executable} --server #{options.join(' ')}"
end
end
end