Sha256: a5a07b8b670ca2b3386b27bd50732f579a00a3561fda8fa8e33fc57032e30c88

Contents?: true

Size: 690 Bytes

Versions: 41

Compression:

Stored size: 690 Bytes

Contents

<% application = fetch(:application) %>
set mail-format { subject: <%= "#{fetch(:full_app_name)} - #{fetch(:rails_env)}" %> $SERVICE $EVENT at $DATE }

check process sidekiq
  with pidfile <%= current_path %>/tmp/pids/sidekiq.pid
  start program = "/etc/init.d/sidekiq_<%= application %>_<%= fetch(:rails_env)%> start"
  stop program = "/etc/init.d/sidekiq_<%= application %>_<%= fetch(:rails_env)%> stop"
  if mem is greater than 500.0 MB for 1 cycles then restart       # eating up memory?
  if cpu is greater than 50% for 2 cycles then alert                  # send an email to admin
  if cpu is greater than 80% for 30 cycles then restart                # hung process?
  group sidekiq

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
teleporter-0.0.31 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.30 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.29 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.28 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.27 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.26 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.25 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.24 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.23 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.22 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.21 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.20 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.19 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.18 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.17 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.16 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.15 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.14 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.13 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.12 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb