diff --git a/config/processes/app.eye b/config/processes/app.eye index dba1d9ad9..69f07a986 100644 --- a/config/processes/app.eye +++ b/config/processes/app.eye @@ -40,30 +40,4 @@ Eye.application :ontohub do end end end - - process :puma do - ctrl_socket = 'unix:///tmp/pumactl.sock' - home = Rails.root.join('..').to_s - - trigger :flapping, times: 10, within: 1.minute - - daemonize true - pid_file "#{env['PID_DIR']}/puma.pid" - stdall 'log/puma.log' - - start_command "#{home}/bin/puma -C config/puma.rb --control=#{ctrl_socket} --control-token=" - stop_command "#{home}/bin/pumactl --control-url=#{ctrl_socket} stop" - restart_command "#{home}/bin/pumactl --control-url=#{ctrl_socket} restart" - - # just sleep this until process get up status - # (maybe enough to puma soft restart) - restart_grace 10.seconds - - # Ensure the CPU is below 80% the last 3 times checked. - check :cpu, every: 30.seconds, below: 80, times: 3 - - # Ensure that the used memory is below the limit - # at least 3 out of the last 5 times checked. - check :memory, every: 30.seconds, below: 256.megabytes, times: [3,5] - end end