magic_recipes_two 0.0.33 → 0.0.34
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
|
+
N2U0OTNiMTNiYmQzNjJmYzU3ZjMwMzNhOWMxZTNjNjE1YjA1ZGQyOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmU5OGM5ZmVlOWJmNmJlNjc3M2Q5Y2VkZDM4NjVhNWJiNzBkODNkNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGU4NmVjM2Q2NWVjMzMwZmE0ODE0ZmI3MmNhMzZhZTA4N2Y3OTM4OTJmODk0
|
10
|
+
ZTZkZGY3ZGJhNmJmYTI4YzA0NTE4YmY2M2M3ZDU2N2RmNTgzNzE4ZTUzZmE2
|
11
|
+
MWU2NWE4NDEzMWQyZDYwZGUwYTA2MmIwZTVlMGZmMjlmNTY0OTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQ0ZTgwY2Q1ODQ4NjhkMWQ0MDhlYjk1ZDAzYzRkNDRlZGVjYmIxZThhNWUx
|
14
|
+
ZTA3ZDE5MDlmNzkxYWE4MzU2NzgyNjI0YjE0ZGI2ZDhjN2ZhNzk4ZGVhZGJj
|
15
|
+
NDM2ZjFjNDVhZmVlOWUyZTVkYWM3ODM1MzdlOGIzNGU1MDg1Yjc=
|
@@ -2,7 +2,7 @@
|
|
2
2
|
check process redis with pidfile <%= fetch(:redis_pid) %>
|
3
3
|
start program = "/etc/init.d/redis-server start"
|
4
4
|
stop program = "/etc/init.d/redis-server stop"
|
5
|
-
if does not exist then alert
|
5
|
+
# if does not exist then alert
|
6
6
|
if 2 restarts within 3 cycles then timeout
|
7
7
|
if totalmem > 100 Mb then alert
|
8
8
|
if children > 255 for 5 cycles then stop
|
@@ -22,7 +22,7 @@ check process <%= sidekiq_service_name(idx) %>
|
|
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 90 seconds
|
23
23
|
stop program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ; bundle exec sidekiqctl stop <%= pid_file %>' " with timeout 90 seconds
|
24
24
|
group <%= fetch(:sidekiq_monit_group, fetch(:application)) %>-sidekiq
|
25
|
-
if does not exist then alert
|
25
|
+
# if does not exist then alert
|
26
26
|
if totalmem is greater than 200 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 }
|