rdstune 0.5.1 → 0.6.0
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/bin/rdstune +5 -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: 258f4d37f2e17d5c43f40f4821afd2eeb9027bee
|
4
|
+
data.tar.gz: c43f4f514db4d23d1481b35dbef2c05f42fde67b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070fdab9b7f8abf80b475e6a9537e3b8e3c0000eeefd6bdc3b5f0a25a2a91225e920b6f12d05d4f2615bb3a6351f98952e565cba09c729e57a6c3c6b92b349d8
|
7
|
+
data.tar.gz: c01e0ccff776ad32399685cf25226e4c009080f5740e440da6b5025a6aa027a891cbd1f1870c80017b3ed55ed28e280471b597f8be9ffa626e0a34dd0c062520
|
data/bin/rdstune
CHANGED
@@ -7,6 +7,7 @@ p = Trollop::Parser.new do
|
|
7
7
|
opt :type, "Type of Database Server (Web/DW/Mixed/Desktop)", :type => :string, :default => 'web'
|
8
8
|
opt :memory, "Amount of Memory on the Server (GiB)", :type => :float
|
9
9
|
opt :connections, "Specify the Target Max Connections", :type => :integer
|
10
|
+
opt :oversubscribe, "Oversubscribe the number of connections", :type => :integer
|
10
11
|
opt :name, "Name of your RDS Parameter Group", :type => :string
|
11
12
|
opt :family, "Database Family (Postgres version)", :type => :string, :default => 'postgres9.3'
|
12
13
|
end
|
@@ -20,6 +21,9 @@ opts = Trollop::with_standard_exception_handling p do
|
|
20
21
|
end
|
21
22
|
|
22
23
|
name = opts[:name] || "rdstune-#{opts[:type]}-#{opts[:memory]}-#{opts[:connections]}".gsub('.','-')
|
23
|
-
|
24
|
+
options = {}
|
25
|
+
options['connections'] = opts[:connections] if opts[:connections]
|
26
|
+
options['oversubscribe'] = opts[:oversubscribe] if opts[:oversubscribe]
|
27
|
+
rdstune = RdsTune.new opts[:type], opts[:memory], options
|
24
28
|
rdstune.create_parameter_group name, opts[:family]
|
25
29
|
rdstune.display_config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdstune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Kerr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|