magic_recipes_two 0.0.37 → 0.0.38
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2MyYjIyNTA3OTQwMDVmNjk2YjhhN2UzM2Y5OTgwZjM4MmE5MmVhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDI4OTI1NGU2NjRkODc2Y2Y2NGI4MmRhYjVmNTY5YTQzOGFlNzQxMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODc0YmExZDg0MzU5M2FlZTI2YTZjNWQ4MjBhNjgyMzA5NTUwNjc0NjIyMjA3
|
10
|
+
YjcwMzI4ZTAyZDgxYjcxY2E5ZWZiZjVmM2E5MzE3YTFlNzczMjg0Mzc1OTMw
|
11
|
+
NmM0NDI3ZGZiMmIzOTcyOTJmYzUyYWJmNjkwZDg4ZDdkM2IyODk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzM3YmExZTkyZTNhYmZkZTk2ZTdkM2I0ZDNiNmZlYmEyZDQyOTkwYjI4YjY0
|
14
|
+
N2FlYWY3MDNhZWJhZjY4NGM5NjYyNzVjMTljODQzZjBmODFiNjM1OTk4NDFl
|
15
|
+
Y2ZhZDUyMDY0YTcxMjE2YzI4MTVkMTU1MTkwN2NhZTY4NTMxOTU=
|
@@ -23,7 +23,7 @@ check process <%= sidekiq_service_name(idx) %>
|
|
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
24
|
group sidekiq-<%= fetch(:sidekiq_monit_group, fetch(:application)) %>-<%= fetch(:stage) %>
|
25
25
|
if does not exist then alert
|
26
|
-
if totalmem > <%= fetch( :monit_sidekiq_totalmem_mb, 300 ).to_i * .
|
26
|
+
if totalmem > <%= ( fetch( :monit_sidekiq_totalmem_mb, 300 ).to_i * 0.75 ).to_i %> MB then alert
|
27
27
|
if totalmem > <%= fetch( :monit_sidekiq_totalmem_mb, 300 ) %> MB for 2 cycles then restart
|
28
28
|
if 3 restarts within 5 cycles then timeout
|
29
29
|
# alert <%= fetch(:monit_mail_to) %> only on { pid }
|
@@ -5,7 +5,7 @@
|
|
5
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 %>' "
|
6
6
|
stop program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ; bundle exec thin stop -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
|
7
7
|
if does not exist then alert
|
8
|
-
if mem > <%= fetch( :monit_thin_totalmem_mb, 300 ).to_i * .
|
8
|
+
if mem > <%= ( fetch( :monit_thin_totalmem_mb, 300 ).to_i * 0.75 ).to_i %> MB then alert
|
9
9
|
if mem > <%= fetch( :monit_thin_totalmem_mb, 300 ) %> MB for 2 cycles then restart
|
10
10
|
if cpu > 50% then alert
|
11
11
|
if cpu > 50% for 3 cycles then restart
|