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-2.0.8 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.7 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.6 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.4 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.2 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.1 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-2.0.0 lib/generators/teleport/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.2.4 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.2.3 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.2.2 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.2.1 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.1.1 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.1.0 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.0.2 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.0.1 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-1.0.0 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.1.0 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.34 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.33 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb
teleporter-0.0.32 lib/generators/initial/templates/capistrano/shared/monit_sidekiq.erb