This plugin allows you to estimate the energy required to read/write data to a storage device, amount of data and drive type
Not Needed
duration
: Length of time the it will take to read/write the datastorage/drive-read-write-power
: Power of the drive(s), when reading/writing, used in Wattsstorage/drive-read-write-speed
: Read/write speed of storage device used in GB/sstorage/data-transfer
: Amount of data to be read/written in GB
An array containing:
duration
: Length of time the it will take to read/write the datastorage/drive-read-write-power
: Power of the drive(s), when reading/writing, used in Wattsstorage/drive-read-write-speed
: Read/write speed of storage device used in GB/sstorage/data-transfer
: Amount of data to be read/written in GBstorage/energy
: The energy apportioned to reading/writing data in kWh
Can throw errors in the following situations:
- Any of
duration
,storage/drive-read-write-power
,storage/drive-read-write-speed
orstorage/data-transfer
are not present in the input. - Any of
duration
,storage/drive-read-write-power
,storage/drive-read-write-speed
orstorage/data-transfer
are not numbers. - Any of
duration
,storage/drive-read-write-power
,storage/drive-read-write-speed
orstorage/data-transfer
are not positive.
To avoid tying the plugin to any point in time data, it requires the individual drive details to be passed in.Calculates the minimum time that that data could be written/read in, using:
If this is greater than the provided duration it will use this instead. The formula for energy estimation is then:
Where
Unit tests available here
Example manifest available here