green-coding-solutions / green-metrics-tool

Measure energy and carbon consumption of software
https://metrics.green-coding.berlin
GNU Affero General Public License v3.0
141 stars 19 forks source link

Messure depending on CO2 Intensity #525

Open Lizard0 opened 8 months ago

Lizard0 commented 8 months ago

Start measurement of Software projects depending on the CO2 Intensity. On good example is the Camunda 8 Connector for Carbon-Aware Process Execution. This Connector shifts the execution of energy intensive work to a time when renewable energies are available. Could be a method to reduce the Carbon footprint of the measurements itselfe.

ribalba commented 8 months ago

This is a great idea that we have actually also discussed internally. While load shifting is also quite controversial in a cloud environment [0] we currently only run our cluster when the sun is shining on our solar panels (on our balconies). We are also currently looking at the data from [1] the Bundesnetzagentur to give you the option to only run jobs when the energy mix is "greener". In the end we would want a datacenter that only switches on when there is solar or wind and then uses the heat for a green house or something.

Thank you for raising this issue and putting it back onto our agenda. I'll keep you posted :)

[0] https://adrianco.medium.com/dont-follow-the-sun-scheduling-compute-workloads-to-chase-green-energy-can-be-counter-productive-b0cde6681763 [1] https://www.smard.de/home

ArneTR commented 7 months ago

Maybe to expand this a little. First off a photo from our solar panel for happiness :) photo_1_2023-11-09_12-26-46

  1. In the winter this issue becomes actually more relevant. Throughout the summer the solar panel has worked fine so far for our farm of up to 4 machines. However in the winter we see that we need to use some grid energy.

@Lizard0 Are you interested in supplying a PR with a metrics provider integrated that will poll the relevant APIs and then a guard-clause that the GMT will only run when the energy is currently green?

Happy to support on this issue!

Lizard0 commented 7 months ago

Maybe to expand this a little. First off a photo from our solar panel for happiness :) photo_1_2023-11-09_12-26-46

  1. In the winter this issue becomes actually more relevant. Throughout the summer the solar panel has worked fine so far for our farm of up to 4 machines. However in the winter we see that we need to use some grid energy.

@Lizard0 Are you interested in supplying a PR with a metrics provider integrated that will poll the relevant APIs and then a guard-clause that the GMT will only run when the energy is currently green?

Happy to support on this issue!

Thats cool! Fascinating that one small panel can support 4 machines! I will take the issue. Will need some time because im bussy actual... :-)

ArneTR commented 7 months ago

Sounds great!

Just adding one more possible data source for the backlog: https://transparency.entsoe.eu/dashboard/show

ribalba commented 7 months ago

More solar panels :) Happy to help when you start woking on the issue.

IMG_6669