Module: BrighterPlanet::Computation::Fallback

Defined in:
lib/computation/fallback.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
# File 'lib/computation/fallback.rb', line 4

def self.included(base)
  base.falls_back_on :compute_time => 1.0, # assume 1 hour
                  :compute_units => 1, # assume 1 EC2 Unit
                  :power_usage_effectiveness => 1.5, # based on Amazon's EC2 cost comparison calculator statement that most data centers have PUE of 1.3 - 3.0
                  :compute_electricity_intensity => 0.075 # kW based on Amazon's EC2 cost comparison calculator stating 150W for small compute instance equivalent server and 0.5 power conversion factor (to get average operating load from nameplate capacity) - EC2 probably has lower draw but higher power conversion factor
end