ring-sqa 0.1.7 → 0.1.8
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 +4 -4
- data/lib/ring/sqa/alarm.rb +5 -1
- 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: 0c87d85ec1ff9b1daf33b01f7ebe576bb5ad11a2
|
|
4
|
+
data.tar.gz: e082af98b466f6ceaf40738791152b9e2dc3e3dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5543b7a43d7669a37ab72886f01525e0a31d42497e5af6b2f145451f4ff7b38e0d2089ce31cfd51314420fd26dcaddf6ccd22c4dca8b6cef51a8982beade2cbd
|
|
7
|
+
data.tar.gz: 74a9ab99f4a392da8c2d5ca617f6a50aaabc2e5ba378c92b868347aeb972f2f4f9fdbde31a7c29b983f0c07c30e7ec70ef5d899ea39ba0566ed8e1013fbdd9e7
|
data/lib/ring/sqa/alarm.rb
CHANGED
|
@@ -44,7 +44,11 @@ class SQA
|
|
|
44
44
|
|
|
45
45
|
def compose_message alarm_buffer
|
|
46
46
|
exceeding_nodes = alarm_buffer.exceeding_nodes
|
|
47
|
-
|
|
47
|
+
if exceeding_nodes.size > 0
|
|
48
|
+
msg = {short: "#{@hostname}: raising #{@afi} alarm - #{exceeding_nodes.size} new nodes down"}
|
|
49
|
+
else
|
|
50
|
+
msg = {short: "#{@hostname}: raising #{@afi} alarm - many nodes were unreachable in the last monitoring period, there is likely network instability. This could be down to your ring node, its local network, or disruption of peering and/or upstream networks (for example instability at an IXP)."}
|
|
51
|
+
end
|
|
48
52
|
exceeding_nodes = exceeding_nodes.map { |node| @nodes.get node }
|
|
49
53
|
|
|
50
54
|
addr_len = @afi == 'ipv6' ? 40 : 15
|
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.8
|
|
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:
|
|
12
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: slop
|