Sha256: 88d30e6b75cea1f632f823647bc7497ad125c0c49114b4f34ddb681953314701

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

<% ((scripts.webapp.params.has_key?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"ALL_QUEUES" => 1 }).each_pair do |queue_name,num_of_workers|%>
<%1.upto(num_of_workers)  do |num|%>
check process resque_<%= queue_name %>_<%= num %>
  with pidfile <%= scripts.webapp.app_path%>/tmp/pids/resque_<%= queue_name %>_<%=num %>.pid
  start program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%>; RAILS_ENV=<%= scripts.webapp.params.rails_env%> script/resque <%= queue_name %> <%=num %>'"
  stop program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%> && kill -s QUIT `cat tmp/pids/resque_<%= queue_name %>_<%=num %>.pid` && rm -f tmp/pids/resque_<%= queue_name %>_<%=num %>.pid; exit 0;'"
  if totalmem is greater than 300 MB for 10 cycles then restart
    <% end %>
<% end %>

#check process resque
#  with pidfile <%= scripts.webapp.app_path%>/tmp/pids/resque.pid
#  start program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%>; RAILS_ENV=<%= scripts.webapp.params.rails_env%> script/resque'"
#  stop program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%> && kill -s QUIT `cat tmp/pids/resque.pid` && rm -f tmp/pids/resque.pid; exit 0;'"
#  if totalmem is greater than 300 MB for 10 cycles then restart

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
standup-0.3.31 scripts/resque/resque_monit.conf
standup-0.3.30 scripts/resque/resque_monit.conf
standup-0.3.29 scripts/resque/resque_monit.conf
standup-0.3.28 scripts/resque/resque_monit.conf
standup-0.3.27 scripts/resque/resque_monit.conf
standup-0.3.26 scripts/resque/resque_monit.conf
standup-0.3.25 scripts/resque/resque_monit.conf
standup-0.3.24 scripts/resque/resque_monit.conf