This plugin allows you to estimate the energy required to store data, based on the amount of data, storage time and drive type.
Not Needed
duration
: Length of time the data will be stored in secondsstorage/drive-size
: Size of the drive(s) used in GBstorage/drive-power
: Power of the drive(s) used in Wattsstorage/data-stored
: Amount of data stored in GBstorage/replication-factor
: the amount of times that the data is replicated (optional - defaults to 1)
An array containing:
duration
: Length of time the data will be stored in secondsstorage/drive-size
: Size of the drive(s) used in GBstorage/drive-power
: Power of the drive(s) used in Wattsstorage/data-stored
: Amount of data stored in GBstorage/replication-factor
: the amount of times that the data is replicated (optional - defaults to 1)storage/energy
: The energy apportioned to the stored data in kWh
Can throw errors in the following situations:
- Any of
duration
,storage/drive-size
,storage/drive-power
orstorage/data-stored
are not present in the input. - Any of
duration
,storage/drive-size
,storage/drive-power
,storage/data-stored
orstorage/replication-factor
are not numbers. - Any of
duration
,storage/drive-size
,storage/drive-power
,storage/data-stored
orstorage/replication-factor
are not positive.
Takes some inspiration from Cloud Carbon Footprint's methodology for storage. To avoid tying the plugin to any point in time data, it requires the individual drive details to be passed in. The formula for energy estimation is then:
Where
Unit tests available here
Example manifest available here