cncf-tags / green-reviews-tooling

Project Repository for the WG Green Reviews which is part of the CNCF TAG Environmental Sustainability
https://github.com/cncf/tag-env-sustainability/tree/main/working-groups/green-reviews
Apache License 2.0
23 stars 14 forks source link

[ACTION] Proposal 3 - Report #95

Open ADiTuri opened 4 months ago

ADiTuri commented 4 months ago

Task Description

Parent Issue https://github.com/cncf-tags/green-reviews-tooling/issues/83

This issue is about discussing a strategy on the reporting capabilities of a Green Review. There are two open points to address:

Metrics

At the moment we have agreed on the SCI score calculation, details of how we compute the SCI score can be found here.

Open points on the current approach

From the last milestone we had two open points:

  1. Embodied carbon: plays a significant role in the SCI. This might not be relevant for the CNCF projects interested in the review, cause it is just dependent on the infrastructure we choose to use.
  2. Functional unit: We choose a time functional unit of 15 minutes, are we fine with this or is there any other improvement we would like to do?

Possible extensions

This issue would also like to address possible extensions on the metrics we would like to consider:

Long Term storage

This section works under the assumption that we have already a chosen set of green metrics. At the moment we don't store any metrics, the energy metric is just show live on the dashboard for the target container. We would like to store the metrics for future analytical purposes. The proposal should suggest:

Goals to achieve

Nice to have

rossf7 commented 4 months ago

The 3 SRE metrics for CPU and memory requested by the Falco team are in this comment

We should consider these in the proposal to not lose the previous discussion.

ChrisChinchilla commented 4 months ago

@rossf7 and @ADiTuri I am more than happy to think about the metrics part to begin with as it fits with my work right now too. I am less confident or experienced on ideas for the storage part, but it's also an excuse to explore some new database engines…

rossf7 commented 1 week ago

@nikimanoledaki @ChrisChinchilla in the last meeting I said I'd look into long term storage options. Here is the write up. I'll present it at the meeting tomorrow.

We can also discuss then how best to integrate it into the proposal PR. Posting it here so its somewhere public. Sorry for the wall of text!

Git

Store results in JSON or Markdown with the file being committed by the GitHub Actions workflow.

Strengths

Weaknesses

Object Storage (S3 compatible)

Upload results to object storage from GitHub Actions workflow.

Strengths

Weaknesses

3 hosting options.

AWS S3

Store results in an S3 bucket.

Strengths

Weaknesses

MinIO

Run Equinix Metal node running MinIO.

Strengths

Weaknesses

Apache Ozone

Run Equinix Metal node running Apache Ozone.

Strengths

Weaknesses

In Cluster Storage with external backup

Current cluster runs K3s which can be configured to use local storage. We still need an external backup but we could use object storage for this.

Strengths

Weaknesses

nikimanoledaki commented 1 day ago

Hey @rossf7! 👋 When you have time, could you add the strengths and weaknesses of using the devstats Postgres DB that we discussed in the last meet, please? Thank you!

I realise you are probably drafting and incorporating the feedback into Proposal 3 at the moment. Feel free to add it directly there rather than in this issue ☺️ Thank you for summarising everything!! 💯