Case#

class impacthpc.src.Case(embodied_impacts: Impacts | None = None, type: CaseType = CaseType.RACK, allocation_method: AllocationMethod | None = None)#

Bases: HasEmbodiedImpacts

Representes case containing servers, used to computes it’s embodied impacts *

This class uses the same estimation as BoavitzAPI, described in

Thibault Simon, David Ekchajzer, Adrien Berthelot, Eric Fourboul, Samuel Rince, et al.. BoaviztAPI: a bottom-up model to assess the environmental impacts of cloud services. HotCarbon’24 - 3rd Workshop on Sustainable Computer Systems, Jul 2024, Santa Cruz, United States. hal-04621947v3"

See the documentation of BoavitzAPI : https://doc.api.boavizta.org/Explanations/components/case/

embodied_impacts#

The embodied impacts of the battery. If the value is known, estimate_embodied_impacts() returns it, otherwise an estimation is done based on other attributes. Defaults to None.

Type:

Impacts | str | None, optional

server_count#

The number of servers cases

Type:

ReplicableValue | str | int | float

Methods Summary

embedded_impacts(job_duration)

Estimate the Embedded impacts of the cases for the job.

Methods Documentation

embedded_impacts(job_duration: ReplicableValue)#

Estimate the Embedded impacts of the cases for the job.

Internally uses estimate_embodied_impacts() and passes it the allocation_method with the job_duration.

Parameters:

job_duration (ReplicableValue) – The duration of the job we want to allocate the embodied impacts to.

Returns:

The Embedded impacts of the cases for the job.

Return type:

Impact

embedded_impacts(job_duration: ReplicableValue)#

Estimate the Embedded impacts of the cases for the job.

Internally uses estimate_embodied_impacts() and passes it the allocation_method with the job_duration.

Parameters:

job_duration (ReplicableValue) – The duration of the job we want to allocate the embodied impacts to.

Returns:

The Embedded impacts of the cases for the job.

Return type:

Impact

estimate_embodied_impacts() Impacts#

Estimate the embodied impacts of the cases.

Returns a constant impact depending on the type of case used. These values are defined in the config file under default_value_case.

Returns:

The case embodied impacts .

Return type:

Impact | None