Skip to content

Commit

Permalink
Merge pull request #1538 from ontohub/1537-remove_puma_from_eye_config
Browse files Browse the repository at this point in the history
Remove puma from eye config.
  • Loading branch information
eugenk committed Apr 26, 2016
2 parents 3873df2 + eacb6b0 commit b970cbe
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions config/processes/app.eye
Expand Up @@ -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

0 comments on commit b970cbe

Please sign in to comment.