mtncd 0.0.2 → 0.0.3
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 +8 -8
- data/Gemfile.lock +8 -8
- data/bin/mtncd +12 -5
- data/lib/mtncd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzY3MDU1YWRhODYzZjA1M2UyZjZjYmRlY2IyOWEzZjZkOWY4ZDFmZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NjA2YjI1MjRiMDg0NjU0YWQ5NGExZmIxNGQyZjQzNGEwMGJmYmYzOA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDhhOWMwNWYxNzE3NzlkN2U5ZjFjYTQ4ODBlNDBkYTg1N2QzMDM1ZmUxMWQ5
|
|
10
|
+
N2YxOWNjMjhmODIyZDk2OTAyZWMxNGU5ODUyMzE2YzBlODMyOWNmZGMyNjg4
|
|
11
|
+
ZWExOTE3ZGMxMzg5OTVkYWQ5Y2FlMDY2NjhhOWE4ZmQzMTJkYTc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDg5MWQ4NGU4MTdhZGQ4MDE5ZmMyZDJiMDg4NTk0MTk1Y2Y2MDI0ZTVjZGJj
|
|
14
|
+
OTRjMjQ0OTU1OGU4YTc5OTA0OGU4MzI0YWJiNzI4NzdmY2JjOWI0YTRhZjll
|
|
15
|
+
NWYwZTM1ODQzM2JlZjM4ZTBiNzgxZDVlNTU4YTJjZDk1ZTFjMGM=
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mtncd (0.0.
|
|
5
|
-
awesome_print
|
|
4
|
+
mtncd (0.0.3)
|
|
5
|
+
awesome_print (= 1.2.0)
|
|
6
6
|
gli (= 2.12.2)
|
|
7
|
-
msgpack
|
|
8
|
-
redis
|
|
9
|
-
resque
|
|
10
|
-
serfx
|
|
7
|
+
msgpack (= 0.5.9)
|
|
8
|
+
redis (= 3.1.0)
|
|
9
|
+
resque (= 1.25.2)
|
|
10
|
+
serfx (= 0.0.8)
|
|
11
11
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
@@ -34,7 +34,7 @@ GEM
|
|
|
34
34
|
json (1.8.1)
|
|
35
35
|
mixlib-log (1.6.0)
|
|
36
36
|
mono_logger (1.1.0)
|
|
37
|
-
msgpack (0.5.
|
|
37
|
+
msgpack (0.5.9)
|
|
38
38
|
multi_json (1.10.1)
|
|
39
39
|
multi_test (0.1.1)
|
|
40
40
|
rack (1.5.2)
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
57
|
rspec-support (~> 3.1.0)
|
|
58
58
|
rspec-support (3.1.2)
|
|
59
|
-
serfx (0.0.
|
|
59
|
+
serfx (0.0.8)
|
|
60
60
|
mixlib-log
|
|
61
61
|
msgpack
|
|
62
62
|
sinatra (1.4.5)
|
data/bin/mtncd
CHANGED
|
@@ -186,6 +186,7 @@ command :system do |system|
|
|
|
186
186
|
result = "OK"
|
|
187
187
|
begin
|
|
188
188
|
redis = Redis.new(:host => $config['system']['redis']['ip'], :port => $config['system']['redis']['port'])
|
|
189
|
+
redis.ping
|
|
189
190
|
rescue
|
|
190
191
|
result = "\033[31mFAIL\033[0m"
|
|
191
192
|
success = false
|
|
@@ -193,11 +194,17 @@ command :system do |system|
|
|
|
193
194
|
puts "Redis - Connected to #{$config['system']['redis']['ip']}:#{$config['system']['redis']['port']} - [#{result}]"
|
|
194
195
|
|
|
195
196
|
# check resque
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
begin
|
|
198
|
+
Resque.redis = "#{$config['system']['redis']['ip']}:#{$config['system']['redis']['port']}"
|
|
199
|
+
result = (Resque.workers.count == $config['system']['resque']['workers']) ? "OK" : "\033[31mFAIL\033[0m"
|
|
200
|
+
success = Resque.workers.count == $config['system']['resque']['workers'] unless success == false
|
|
201
|
+
puts "Resque - Should have #{$config['system']['resque']['workers']} workers, running #{Resque.workers.count} workers - [#{result}]"
|
|
202
|
+
rescue
|
|
203
|
+
result = "\033[31mFAIL\033[0m"
|
|
204
|
+
success = false
|
|
205
|
+
puts "Resque - failed to get worker count - [#{result}]"
|
|
206
|
+
end
|
|
207
|
+
|
|
201
208
|
# check serf
|
|
202
209
|
if $config['role'] != 'central'
|
|
203
210
|
begin
|
data/lib/mtncd/version.rb
CHANGED