Sha256: 98560772c13459a94141dcf2397110a80ce30002995470c04db14ded0076d48f
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# Monit configuration for SIDEKIQ-six : <%= fetch(:application) %> (<%= fetch(:stage) %>) <% for_each_process do |service_file, idx| %> CHECK process <%= sidekiq_six_service_name(service_file) %> with pidfile <%= fetch(:monit_sidekiq_pid_path) %>/<%= service_file %>.pid start program = "/bin/systemctl start <%= service_file %>" with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds stop program = "/bin/systemctl stop <%= service_file %>" with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds GROUP sidekiq-<%= fetch(:sidekiq_monit_group, fetch(:application)) %>-<%= fetch(:stage) %> GROUP sidekiq # if does not exist then start # (default) if totalmem > <%= ( fetch( :monit_sidekiq_totalmem_mb, 300 ).to_i * 0.75 ).to_i %> MB then <%= monit_alert %> if totalmem > <%= fetch( :monit_sidekiq_totalmem_mb, 300 ) %> MB for 2 cycles then restart # if does not exist for 3 cycles then <%= monit_alert %> # alert <%= fetch(:monit_mail_to) %> only on { pid } if 3 restarts within 5 cycles then <%= monit_alert %> if 3 restarts within 5 cycles then timeout if 2 restarts within 3 cycles then <%= monit_alert %> if changed pid 2 times within 10 cycles then <%= monit_alert %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_recipes_two-0.0.95 | lib/generators/capistrano/magic_recipes/templates/monit/sidekiq_six.erb |