magic_recipes_two 0.0.75 → 0.0.76

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTE5YTljNzFlNTM1ZjBmY2VjOGQyMmYyNmMxMmExZmE1MDdhNjBmZg==
4
+ YzdmZGRkYjdmMzY0OTIyM2ZkYjA5YzllMWU1NzQ5ODE5OTgxNmJlNw==
5
5
  data.tar.gz: !binary |-
6
- YmFhMDM4NThhMTEyNTgwY2FmMDkyYjA5MDFlNDM0YjczYWYxZTQxZg==
6
+ ZjA0OGI5ZjJmOGQ5ZmRhZjMyZWM4MDQ2MWEyYWMzNjc3ZWI0NWQ0MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWFjMGVkOTBiZWEyYmM1NmY3MmMzNTYyYzIxOGY2NzEzOGQyZDQyYjI1NWU5
10
- YjY1Mzk5Yjk5ODMyN2YwMzQ1ZDhiNDMzNGEzMjg2NjExZjM2M2YxZWI5ZjUz
11
- OGJmYzg4MDEyZjU2OWYzMTljMTI5Nzk5MDgyMDViYjg0MmJkMWY=
9
+ YzFlZDVhMThkYTUwOTRkMTU3NDcwY2U4MTM3ODNlYjg2Yjg5MTMyODk5Zjc3
10
+ MjQwY2IwYzI0Yzc4ODY1ZjhlYzBmYWMzZDViOGRkMzJkM2YyMmJhM2NmNDQz
11
+ MGVhMGExNzA1YmJkODk2ODI1MzU2NDFmOGY3NzNhZDM2Mzc2MGQ=
12
12
  data.tar.gz: !binary |-
13
- ZTE3NDI1YTEyZWFjYjJlYzgxNDMyNDU5NGE0M2ZhNjQzZWEzMTkzM2E5ZTRl
14
- MzA3OTMzNzgxZDQ2MGFiNGFmZjk1NzQ2YTViMzdiMmZjZDA3MzEzOTdjZDhk
15
- YjYwNzYwNzczMzIzNjk4NGEwZWJkMTUzYThmM2Y0Nzc5ZWE0NDc=
13
+ MzU2NDI4Y2JmMzc3OWIxNjBhOTlmYjI5MjE1NWNmOGFkMWU1NDMyOWQ3ZDYx
14
+ M2RlZmRjMDk5MzNhZmEzZjg2YjQyZTkwYzMxNmU5ZTM4MDdlY2FiMDI2ODA5
15
+ M2FiY2Y0YTNlNWQzZjBjYzBjMWU2NjQwNWVlOWU2ZmM2ZWYxNTg=
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module MagicRecipes
3
- VERSION = "0.0.75"
3
+ VERSION = "0.0.76"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ include Capistrano::MagicRecipes::BaseHelpers
4
4
  namespace :load do
5
5
  task :defaults do
6
6
  set :monit_roles, -> { :web }
7
- set :monit_interval, -> { 30 }
7
+ set :monit_interval, -> { 60 }
8
8
  set :monit_bin, -> { '/usr/bin/monit' }
9
9
  ## Monit default: '/var/log/monit.log'
10
10
  set :monit_logfile, -> { "#{shared_path}/log/monit.log" }
@@ -27,8 +27,8 @@
27
27
  %>
28
28
  check process <%= sidekiq_service_name(idx) %>
29
29
  with pidfile "<%= pid_file %>"
30
- start program = <%= monit_app_prefixed("sidekiq #{ args.join(" ") }") %> with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
31
- stop program = <%= monit_app_prefixed("sidekiqctl stop #{ pid_file }") %> with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
30
+ start program = "<%= monit_app_prefixed("sidekiq #{ args.join(" ") }") %>" with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
31
+ stop program = "<%= monit_app_prefixed("sidekiqctl stop #{ pid_file }") %>" with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
32
32
  group sidekiq-<%= fetch(:sidekiq_monit_group, fetch(:application)) %>-<%= fetch(:stage) %>
33
33
  # if does not exist then start # (default)
34
34
  if totalmem > <%= ( fetch( :monit_sidekiq_totalmem_mb, 300 ).to_i * 0.75 ).to_i %> MB then alert
@@ -2,8 +2,8 @@
2
2
  <% fetch(:app_instances, 1).times do |n| %>
3
3
  check process <%= fetch(:application) %>_<%= fetch(:stage) %>_thin_<%= n %> with pidfile <%= deploy_to %>/shared/pids/thin_<%= fetch(:application) %>_<%= fetch(:stage) %>.<%= n %>.pid
4
4
  group thin-<%= fetch(:application) %>-<%= fetch(:stage) %>
5
- start program = <%= monit_app_prefixed("thin start -C config/thin_app_#{ fetch(:stage) }.yml -o #{ n }") %>
6
- stop program = <%= monit_app_prefixed("thin stop -C config/thin_app_#{ fetch(:stage) }.yml -o #{ n }") %>
5
+ start program = "<%= monit_app_prefixed("thin start -C config/thin_app_#{ fetch(:stage) }.yml -o #{ n }") %>"
6
+ stop program = "<%= monit_app_prefixed("thin stop -C config/thin_app_#{ fetch(:stage) }.yml -o #{ n }") %>"
7
7
  # if does not exist then start # (default)
8
8
  # if does not exist for 3 cycles then alert
9
9
  if 3 restarts within 5 cycles then alert
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes_two
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.75
4
+ version: 0.0.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel