Closed jawache closed 1 year ago
@jawache
I am planning to use the following information for the usage measurement.
AWS Instances - This has complete usage specification rather than just the information about per core. Such it is much easier to use this information against the data provided in the IMPL format.
AWS Calculated Coefficients - This link gives usage per vCPU according to the CPU Type for such, can only measure usage from the CPU part and not the rest.
Copying @gnanakeethan's comment from https://github.com/Green-Software-Foundation/carbon-ql/issues/50
https://www.npmjs.com/package/@cloud-carbon-footprint/core implements the calculation algorithms.
Following three packages include the coefficients to be used and initialized.
https://www.npmjs.com/package/@cloud-carbon-footprint/aws https://www.npmjs.com/package/@cloud-carbon-footprint/azure https://www.npmjs.com/package/@cloud-carbon-footprint/gcp
It might require a data-type that features information like which platform / cloud, then the usage metrics.
These packages can not be called directly but they need to be initialized and then called.
@jawache the data files for gcp does not have the information about the curve.
We will have to rely on the output information to further.
I will try to dissect how CCF currently utilises these output values.
@jawache Regarding the SCI calculations, I might have to include the emissions data.
Should I use the emissions information within the CCF data repository or I should use the generic one you have previously mentioned?
@jawache
CCF vs Boavizta Cloud API return completely different values.
Is it normal?
@jawache Regarding the SCI calculations, I might have to include the emissions data.
Should I use the emissions information within the CCF data repository or I should use the generic one you have previously mentioned?
Ignore those we will have a separate source, just return energy for now then rest will fit in automatically.
@jawache
I have confirmed the following information for "AWS" - "t2.micro" instance type - "1hour usage"
Boavizta outputs:
{"e": 0.022222222222222223, "m": 34,000 }
CCF outputs:
{ "e": 0.004900000000000001, "m": 1,477,540 }
"m" value is kind of weird since it has to be constant.
Embodied emissions for each family is same regardless of the size in "CCF" output. https://github.com/cloud-carbon-footprint/ccf-coefficients/blob/main/output/coefficients-aws-embodied.csv
For Boavizta, it changes according to the instance family & size as well.
CCF has the total embodied emissions, need to scale it to the request using the below equation (by time-share and by resource-share)
Where:
TE = Total Embodied Emissions, the sum of Life Cycle Assessment(LCA) emissions for all hardware components TR = Time Reserved, the length of time the hardware is reserved for use by the software EL = Expected Lifespan, the anticipated time that the equipment will be installed RR = Resources Reserved, the number of resources reserved for use by the software. TR = Total Resources, the total number of resources available.
@gnanakeethan
Closing as the associated PR is closed. https://github.com/Green-Software-Foundation/ief/pull/74
Name
ccf.cloud.sci
Scope
This model returns the SCI score and component E, I and M values for cloud providers as supported by the CCF Package
References
Assumptions
N/A
Limitations
Validations
N/A
Inputs
Methodology
Example IMPL
Observations
Outputs
ImpactMetric (SCI style) will look like so for now:
Unit Tests
Unit Tests