ring-sqa 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ring/sqa/alarm/message.rb +1 -2
- data/lib/ring/sqa/analyzer.rb +5 -0
- data/ring-sqa.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be6ad7a4fc28fad083958e8751d852e155c83b66
|
4
|
+
data.tar.gz: c560a356e42564b20b7af2b2852a976fac6c10ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 732955f4a710112721b62ede527f6c4e9b0e04424ce26fe57b6ddcfaba086da61135ec0ad75eb71ba1d5585df8583fd0b84a5089d20bb60cc08538c33102bee5
|
7
|
+
data.tar.gz: ab147f5b1d101d947b52b020c2b1ae7b9ca6fa4c26c8919929d39e38f53a1c5982278f937245a6c1cf33f5eb5deb161cad4362b9ec175df65028349c46a21bf5
|
@@ -3,8 +3,7 @@ class SQA
|
|
3
3
|
|
4
4
|
class Alarm
|
5
5
|
def message nodes_list, mtr_list, buffer_list, amount
|
6
|
-
"
|
7
|
-
Regarding: #{Ring::SQA::CFG.host.name} #{Ring::SQA::CFG.afi}
|
6
|
+
"Regarding: #{Ring::SQA::CFG.host.name} #{Ring::SQA::CFG.afi}
|
8
7
|
|
9
8
|
This is an automated alert from the distributed partial outage
|
10
9
|
monitoring system 'RING SQA'.
|
data/lib/ring/sqa/analyzer.rb
CHANGED
@@ -17,6 +17,11 @@ class SQA
|
|
17
17
|
@buffer.push records.map { |record| record.peer }
|
18
18
|
@buffer.exceed_median? ? @alarm.set(@buffer) : @alarm.clear(@buffer)
|
19
19
|
delay = INTERVAL-(Time.now-start)
|
20
|
+
# in case delay happens to be too big
|
21
|
+
if delay > INTERVAL
|
22
|
+
delay = INTERVAL
|
23
|
+
Log.warn "delay became larger than #{INTERVAL}, capping it. (did ntp just sync?)"
|
24
|
+
end
|
20
25
|
if delay > 0
|
21
26
|
sleep delay
|
22
27
|
else
|
data/ring-sqa.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ring-sqa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saku Ytti
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: slop
|