1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/examples/chef/cookbooks/sidekiq/templates/default/monitrc.conf.erb
jc00ke cca7580512 Adding EY-specific chef recipe example
This works on a single instance deploy on EY. Haven't tested it on a
multi-server environment yet.
2012-02-21 19:44:44 -08:00

8 lines
564 B
Text

<% (@num_workers || 1).times do |num| %>
check process sidekiq_<%= @app_name %>_<%= num %>
with pidfile /var/run/engineyard/sidekiq/<%= @app_name %>/sidekiq_<%= num %>.pid
start program = "/engineyard/bin/sidekiq <%= @app_name %> start <%= @rails_env %> sidekiq_<%= num %>.yml" with timeout 90 seconds
stop program = "/engineyard/bin/sidekiq <%= @app_name %> stop <%= @rails_env %> sidekiq_<%= num %>.yml" with timeout 90 seconds
if totalmem is greater than 300 MB for 2 cycles then restart # eating up memory?
group <%= @app_name %>_sidekiq
<% end %>