elasticDynamoDb 1.5 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/README.md +2 -0
- data/elasticDynamoDb.gemspec +1 -1
- data/lib/elasticDynamoDb.rb +1 -1
- data/lib/elasticDynamoDb/cloudwatch.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b0aa165084904cb967ad464906a5c80e64b74e
|
4
|
+
data.tar.gz: de2d3e87872d5dccb800c8eba63274089303261d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f091ff1b1669e000a0921814498a5c9df3c2594b90f3902530a9cd55311c781c363507c5ba425f7ebd4c29b67a0cb6c85c0d48576ac13b18a2902afe2a17c64b
|
7
|
+
data.tar.gz: 8c8ffad1c546171b41b5a0e74fa4635704e2071f0474872d39e27850c99263f27640dd021c2851ded590f95df93605901a42eb9a0d1e53f98d826377aa1b73c0
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
a wrapper tool to help with large planned traffic spike in combination with [dynamic-dynamodb](https://github.com/sebdah/dynamic-dynamodb)
|
4
4
|
|
5
|
+
now supporting resetting CloudWatch alarms on table updates
|
6
|
+
|
5
7
|
|
6
8
|
[dynamic-dynamodb](https://github.com/sebdah/dynamic-dynamodb) tool is great for autoscaling but it has a few limitation:
|
7
9
|
|
data/elasticDynamoDb.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files`.split($\).reject{|n| n =~ %r[png|gif\z]}.reject{|n| n =~ %r[^(test|spec|features)/]}
|
16
16
|
s.add_runtime_dependency 'configparser', '~> 0'
|
17
17
|
s.add_runtime_dependency 'thor', '~> 0.19', '>= 0.19.1'
|
18
|
-
s.add_runtime_dependency 'aws-sdk
|
18
|
+
s.add_runtime_dependency 'aws-sdk', '~> 2.0.45', '>= 2.0.45'
|
19
19
|
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
20
20
|
s.extra_rdoc_files = ['README.md', 'LICENSE']
|
21
21
|
s.license = 'MIT'
|
data/lib/elasticDynamoDb.rb
CHANGED
@@ -29,7 +29,7 @@ module ElasticDynamoDb::Cli::CloudWatch
|
|
29
29
|
period: 60,
|
30
30
|
unit: "Count",
|
31
31
|
threshold: threshold,
|
32
|
-
evaluation_periods:
|
32
|
+
evaluation_periods: 5,
|
33
33
|
comparison_operator: "GreaterThanOrEqualToThreshold"
|
34
34
|
}
|
35
35
|
self.cw.put_metric_alarm(cw_options)
|
@@ -44,7 +44,7 @@ module ElasticDynamoDb::Cli::CloudWatch
|
|
44
44
|
|
45
45
|
if !arn.nil? && !reads_upper_alarm_threshold.nil? && !writes_upper_alarm_threshold.nil?
|
46
46
|
put_metric_alarm(table_options, 'read', (table_options[:provisioned_throughput][:read_capacity_units] * 300) * reads_upper_alarm_threshold.to_i/100, arn)
|
47
|
-
put_metric_alarm(table_options, '
|
47
|
+
put_metric_alarm(table_options, 'write', (table_options[:provisioned_throughput][:write_capacity_units] * 300) * writes_upper_alarm_threshold.to_i/100, arn)
|
48
48
|
else
|
49
49
|
say "unable to find sns topic in config file - skipping cloudwatch alerts", color = :yellow
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticDynamoDb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ami Mahloof
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configparser
|
@@ -45,25 +45,25 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.19.1
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: aws-sdk
|
48
|
+
name: aws-sdk
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.0.
|
53
|
+
version: 2.0.45
|
54
54
|
- - '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.0.
|
56
|
+
version: 2.0.45
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ~>
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.0.
|
63
|
+
version: 2.0.45
|
64
64
|
- - '>='
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 2.0.
|
66
|
+
version: 2.0.45
|
67
67
|
description: Elastically scale up or down with dynamic-dynamodb tool
|
68
68
|
email: ami.mahloof@gmail.com
|
69
69
|
executables:
|