dynamo-autoscale 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/dynamo-autoscale/dispatcher.rb +5 -0
- data/lib/dynamo-autoscale/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -10,6 +10,11 @@ module DynamoAutoscale
|
|
10
10
|
DynamoAutoscale.current_table = table
|
11
11
|
logger.debug "#{time}: Dispatching to #{table.name} with data: #{datum}"
|
12
12
|
|
13
|
+
# If a nil value comes through, we can reasoanbly assume that it should
|
14
|
+
# have been 0.
|
15
|
+
datum[:consumed_writes] = 0 if datum[:consumed_writes].nil?
|
16
|
+
datum[:consumed_reads] = 0 if datum[:consumed_reads].nil?
|
17
|
+
|
13
18
|
if datum[:provisioned_reads] and (datum[:consumed_reads] > datum[:provisioned_reads])
|
14
19
|
lost_reads = datum[:consumed_reads] - datum[:provisioned_reads]
|
15
20
|
|