elasticDynamoDb 1.5 → 1.5.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab92c209e72914d232932624af454e823ea8916d
4
- data.tar.gz: 394e933da2f2318d322d7cc912e46b360624297b
3
+ metadata.gz: 72b0aa165084904cb967ad464906a5c80e64b74e
4
+ data.tar.gz: de2d3e87872d5dccb800c8eba63274089303261d
5
5
  SHA512:
6
- metadata.gz: 867c68fc402f5422d86ca890d5a069350f02dbeccc3500792bc7543f13ad4c55162f7b55a42fad436f5d008b643f0500b74dc96873c9bb56a049b6c77f7176de
7
- data.tar.gz: 35fa7c1447f695ce8167968599faeebdc854a6078cec488fea26850a138a453d965393b571f280f646daa3fe1bcdd81468e79423d8cd324cdf834a06712b053b
6
+ metadata.gz: f091ff1b1669e000a0921814498a5c9df3c2594b90f3902530a9cd55311c781c363507c5ba425f7ebd4c29b67a0cb6c85c0d48576ac13b18a2902afe2a17c64b
7
+ data.tar.gz: 8c8ffad1c546171b41b5a0e74fa4635704e2071f0474872d39e27850c99263f27640dd021c2851ded590f95df93605901a42eb9a0d1e53f98d826377aa1b73c0
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ 1.5
2
+ ----
3
+ added cloudwatch alarms setter acording to what's in the config
4
+ fix a bug where more than 10 tables would not update automatically
5
+
6
+
1
7
  1.4.2
2
8
  -----
3
9
  fix issue of scaling incorrectly when using decimals for example
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
 
@@ -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-core', '~> 2.0.17', '>= 2.0.17'
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'
@@ -1,5 +1,5 @@
1
1
  module ElasticDynamoDb
2
- VERSION = "1.5"
2
+ VERSION = "1.5.1"
3
3
  ABOUT = "ElasticDynamoDb v#{VERSION} (c) #{Time.now.strftime("2014-%Y")} @innovia"
4
4
 
5
5
  autoload :Cli, 'elasticDynamoDb/cli'
@@ -29,7 +29,7 @@ module ElasticDynamoDb::Cli::CloudWatch
29
29
  period: 60,
30
30
  unit: "Count",
31
31
  threshold: threshold,
32
- evaluation_periods: 60,
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, 'writes', (table_options[:provisioned_throughput][:write_capacity_units] * 300) * writes_upper_alarm_threshold.to_i/100, arn)
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: '1.5'
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-05-17 00:00:00.000000000 Z
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-core
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.17
53
+ version: 2.0.45
54
54
  - - '>='
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.17
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.17
63
+ version: 2.0.45
64
64
  - - '>='
65
65
  - !ruby/object:Gem::Version
66
- version: 2.0.17
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: