Sha256: 0d7bfd89017cb2b7b3b557eace16d11533ffdc9869ea33bfa284b4d7a42b5000

Contents?: true

Size: 704 Bytes

Versions: 10

Compression:

Stored size: 704 Bytes

Contents

<% processes.each do |process| %>
  
check process mongrel_cluster_<%= application %>_<%= process[:port] %> with pidfile <%= process[:pid_path] %>
   group mongrel_cluster_<%= application %>
   start program = "<%= process[:name] %> start <%= process[:start_options] %>"
   stop program = "<%= process[:name] %> stop <%= process[:stop_options] %>"
   if failed host 127.0.0.1 port <%= process[:port] %> protocol http
      and request "/" then alert
   if totalmem > 100 Mb then restart
   if cpu is greater than 60% for 2 cycles then alert
   if cpu > 80% for 5 cycles then restart
   if loadavg(5min) greater than 10 for 8 cycles then restart
   if 3 restarts within 5 cycles then timeout
   
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
capigen-0.1.3 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capigen-0.1.2 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capigen-0.1.1 templates/mongrel/mongrel_cluster.monitrc.erb
capigen-0.1.4 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.2.1 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.2.3 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.1.9 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.1.8 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.2.2 lib/templates/mongrel/mongrel_cluster.monitrc.erb
capitate-0.1.7 lib/templates/mongrel/mongrel_cluster.monitrc.erb