Sha256: b3f0fe58260352629b70525a33430c68237f23c812cc7dab599fc387634290f1
Contents?: true
Size: 675 Bytes
Versions: 8
Compression:
Stored size: 675 Bytes
Contents
check process <%= application %>_unicorn with pidfile <%= unicorn_pid %> start program = "/etc/init.d/<%= application %> start" stop program = "/etc/init.d/<%= application %> stop" <% unicorn_workers.times do |n| %> <% pid = unicorn_pid.sub(".pid", ".#{n}.pid") %> check process <%= application %>_unicorn_worker_<%= n %> with pidfile <%= pid %> start program = "/bin/true" stop program = "/usr/bin/test -s <%= pid %> && /bin/kill -QUIT `cat <%= pid %>`" if mem > 200.0 MB for 1 cycles then restart if cpu > 50% for 3 cycles then restart if 5 restarts within 5 cycles then timeout if changed pid 2 times within 60 cycles then alert <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems