vector 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -69,6 +69,15 @@ your scaledown policy doesn't quickly undo Vector's hard work. You
69
69
  probably want to set `up-to-down-cooldown` to be close to the size of
70
70
  your `lookahead-window`.
71
71
 
72
+ ### Timezones
73
+
74
+ If you specify a timezone (either explicitly or via the system
75
+ timezone), Vector will use DST-aware time calculations when evaluating
76
+ lookback windows. If you don't specify a timezone and your system time
77
+ is UTC, then 8AM on Monday morning after DST ends will look back 168
78
+ hours - which is 7AM on the previous Monday. Predictive scaling would
79
+ be off by one hour for a whole week in that case.
80
+
72
81
  ## Flexible Down Scaling
73
82
 
74
83
  ### Different Cooldown Periods
@@ -86,9 +95,8 @@ another scale up, and 40 minutes for a scale down."
86
95
 
87
96
  Vector lets you add custom up-to-down and down-to-down cooldown periods.
88
97
  You create your policies and alarms in your Auto Scaling Groups like
89
- normal, and then *disable* the alarm you want a custom cooldown period
90
- applied to. Then you tell Vector what cooldown periods to use, and he
91
- does the rest.
98
+ normal, and then *disable* the alarms tied to the scale down policy.
99
+ Then you tell Vector what cooldown periods to use, and he does the rest.
92
100
 
93
101
  ### Multiple Alarms
94
102
 
@@ -71,7 +71,6 @@ module Vector
71
71
  def load_config
72
72
  opts = {
73
73
  :quiet => false,
74
- :timezone => nil,
75
74
  :region => 'us-east-1',
76
75
  :groups => [],
77
76
  :fleet => nil,
@@ -95,7 +94,7 @@ module Vector
95
94
  o.separator "DURATION can look like 60s, 1m, 5h, 7d, 1w"
96
95
 
97
96
  o.on("--timezone TIMEZONE", "Timezone to use for date calculations (like America/Denver) (default: system timezone)") do |v|
98
- opts[:timezone] = v
97
+ Time.zone = v
99
98
  end
100
99
 
101
100
  o.on("--region REGION", "AWS region to operate in (default: us-east-1)") do |v|
@@ -1,3 +1,3 @@
1
1
  module Vector
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk