Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
68 stars 23 forks source link

Component scope 2 #32

Closed da-ekchajzer closed 2 years ago

da-ekchajzer commented 2 years ago

Epic

Usage

US

As an external user I can retrieve the scope2 impact of components With components usage and characteristics

Component yearly consumption

Resources : https://medium.com/teads-engineering/building-an-aws-ec2-carbon-emissions-dataset-3f0fd76c98ac#3a7d

Yearly consumption CPU

yearly_electrical_consumption = (tdp * tdp_ratio * (1-idle_time_ratio) + tdp_idle * idle_time_ratio) * 24 * 365

Yearly consumption of CPU is measure as a ratio of TDP value. The tdp_ratio can be retrieved in the API data with the medium workload and the CPU model or family. The TDP can be retrieved in the API data with the CPU model or family. The ratio and the TDP can be given by the user.

TDP : TDP stands for Thermal Design Power, in watts, and refers to the power consumption under the maximum theoretical load.

Yearly consumption for SSD

TODO

Yearly consumption for RAM

TODO

Yearly consumption for HDD

TODO

Yearly consumption for other

TODO