boaviztapi
boaviztapi copied to clipboard
Adding cloud platform computation and PUE
Hello,
I’ve finally implemented the methodology we proposed in BoaviztAPI: a bottom-up model to assess the environmental impacts of cloud services.
Key Updates
- Added functionality to assess the footprint of a Cloud Platform (i.e., multiple servers).
- Incorporated Power Usage Effectiveness (PUE) in computations.
- Refactored terminology:
- Replaced cloud with cloud instance (i.e., virtual machines, as per the paper’s terminology).
- Introduced cloud platform as the underlying infrastructure hosting cloud instances.
- Implemented an archetype for cloud platforms, following a bottom-up approach: server → cloud platform → cloud instance. Both CloudPlatform and CloudInstance are now considered services, not devices.
- Moved complete_usage logic directly into setters to avoid breaking encapsulation. I feel this should be our approach moving forward,
Breaking Changes
Since these updates affect the computational model, I’ve implemented them gradually to ensure result consistency and verify tests coherency
Next Steps
- Given the significance of these changes, I believe we should discuss whether the implementation I've proposed is the right one.
- Once we validate an approach, we should integrate the paper’s embodied impact factors for cloud platforms (and instances), which will require updating all related tests.
Let me know your thoughts!