magic_recipes_two 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
YWRiZWI3YTQ4Mjk0Yzc2NmMzMDFiODFmN2Q2MWMxYTQxZTU5MGQ4Ng==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
MDcwMGEwYjE5OWYxZDVjZGQ3YmYzNWZhN2ViYTE5YjRjYThhMDE0OA==
|
|
5
7
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
M2YwN2MxY2FiM2Q1NDhmZjlhZTRmYjc0MjE2MWExZWNkMTg3NjFjNjkzMWFm
|
|
10
|
+
NzZkMzcxNWJmMmZkYjMxZDhiMzQyYjRmZGExZTA5YWU0MWEwMDE2NGIzZTQ1
|
|
11
|
+
M2U2Y2I3NWY4N2RiODZkNWFkNDg0MGQxNzMzM2Y5MjE1ZjRiMGE=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
YzRiNzc0OWIyNDAzMzM3N2UyYzZhNDZhOWY3NGRhODViYzE0ZDIxMDU3ZmZl
|
|
14
|
+
NzRlZjI4MjEzZDQ4NmU2OTAzNTI3NDViYzkyZDJmMWFjYjlkY2YxNGYxOWUx
|
|
15
|
+
ODJmNTkwMWFhNWZlYjdiODk0NjIzMzE1YmY2ZDQzYTZlZjc5NjU=
|
|
@@ -28,6 +28,7 @@ namespace :load do
|
|
|
28
28
|
set :postgresql_pid, -> { "/var/run/postgresql/9.1-main.pid" }
|
|
29
29
|
## Additional stuff for thin (need secrets_key_base to be set)
|
|
30
30
|
set :monit_thin_with_secret, -> { false }
|
|
31
|
+
set :monit_thin_totalmem_mb, -> { 300 }
|
|
31
32
|
## Additional stuff for sidekiq (need secrets_key_base to be set)
|
|
32
33
|
set :monit_sidekiq_with_secret, -> { false }
|
|
33
34
|
set :monit_sidekiq_totalmem_mb, -> { 300 }
|
|
@@ -21,9 +21,9 @@ check process <%= sidekiq_service_name(idx) %>
|
|
|
21
21
|
with pidfile "<%= pid_file %>"
|
|
22
22
|
start program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ;<% if fetch(:monit_sidekiq_with_secret) %> export SECRET_KEY_BASE=<%= fetch(:secrets_key_base) %>; export <%= fetch(:secrets_key_name) %>=<%= fetch(:secrets_key_base) %>;<% end %> bundle exec sidekiq <%= args.join(" ") %>'" with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
|
|
23
23
|
stop program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ; bundle exec sidekiqctl stop <%= pid_file %>' " with timeout <%= fetch(:monit_sidekiq_timeout_sec, 90) %> seconds
|
|
24
|
-
group
|
|
25
|
-
|
|
26
|
-
if totalmem is greater than <%= fetch( :monit_sidekiq_totalmem_mb, 300 )%> MB for 2 cycles then restart
|
|
24
|
+
group sidekiq-<%= fetch(:sidekiq_monit_group, fetch(:application)) %>-<%= fetch(:stage) %>
|
|
25
|
+
if does not exist then alert
|
|
26
|
+
if totalmem is greater than <%= fetch( :monit_sidekiq_totalmem_mb, 300 ) %> MB for 2 cycles then restart
|
|
27
27
|
if 3 restarts within 5 cycles then timeout
|
|
28
28
|
# alert <%= fetch(:monit_mail_to) %> only on { pid }
|
|
29
29
|
if 2 restarts within 3 cycles then alert
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# Monit configuration for THIN : <%= fetch(:application) %> (<%= fetch(:stage) %>)
|
|
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
|
-
group thin-<%= fetch(:application) %>
|
|
5
|
-
group thin-<%= fetch(:stage) %>
|
|
4
|
+
group thin-<%= fetch(:application) %>-<%= fetch(:stage) %>
|
|
6
5
|
start program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ;<% if fetch(:monit_thin_with_secret) %> export SECRET_KEY_BASE=<%= fetch(:secrets_key_base) %>; export <%= fetch(:secrets_key_name) %>=<%= fetch(:secrets_key_base) %>;<% end %> bundle exec thin start -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
|
|
7
6
|
stop program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ; bundle exec thin stop -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
|
|
8
7
|
if does not exist then alert
|
|
9
|
-
if mem >
|
|
8
|
+
if mem > <%= fetch( :monit_thin_totalmem_mb, 300 ) %> MB for 1 cycles then restart
|
|
10
9
|
if cpu > 50% for 3 cycles then restart
|
|
11
10
|
if 5 restarts within 5 cycles then timeout
|
|
12
11
|
# alert <%= fetch(:monit_mail_to) %> only on { pid }
|
metadata
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: magic_recipes_two
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.36
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Torsten Wetzel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ! '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '3.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ! '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: capistrano
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ! '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '3.2'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ! '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '3.2'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: capistrano-bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ! '>='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '1.1'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ! '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.1'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: capistrano-rails
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ! '>='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '1.1'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ! '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.1'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
@@ -84,28 +84,28 @@ dependencies:
|
|
|
84
84
|
name: capistrano-postgresql
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - ! '>='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '4.2'
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - ! '>='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '4.2'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: sqlite3
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- -
|
|
101
|
+
- - ! '>='
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- -
|
|
108
|
+
- - ! '>='
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
111
|
description: MagicRecipesTwo contains our most used deployment recipes for Capistrano-3.
|
|
@@ -165,17 +165,17 @@ require_paths:
|
|
|
165
165
|
- lib
|
|
166
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
|
168
|
-
- -
|
|
168
|
+
- - ! '>='
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
170
|
version: '0'
|
|
171
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
requirements:
|
|
173
|
-
- -
|
|
173
|
+
- - ! '>='
|
|
174
174
|
- !ruby/object:Gem::Version
|
|
175
175
|
version: '0'
|
|
176
176
|
requirements: []
|
|
177
177
|
rubyforge_project:
|
|
178
|
-
rubygems_version: 2.
|
|
178
|
+
rubygems_version: 2.4.8
|
|
179
179
|
signing_key:
|
|
180
180
|
specification_version: 4
|
|
181
181
|
summary: Some recipes for rails-4 and capistrano-3.
|