Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose the region that has based on the value of carbon intensity #252

Closed
sharibj opened this issue Sep 8, 2023 · 2 comments
Closed

Choose the region that has based on the value of carbon intensity #252

sharibj opened this issue Sep 8, 2023 · 2 comments
Labels
initial review proposed pattern An idea for a new pattern to submit

Comments

@sharibj
Copy link

sharibj commented Sep 8, 2023

Describe the pattern you'd like to propose
According to Carbon Awareness Principle, carbon intensity (gCO2eq/kWh) varies by location. This pattern influences the choice of region based on the value of carbon intensity. This pattern works in tandem with an already existing pattern. The main difference being that the existing pattern does not impact I (Location-based marginal carbon emissions , gCO2/kWh)

The idea is to not only consider the proximity to the users, but also consider the carbon emissions of the physical location and choose the most balanced/sustainable region for your application workload.

Describe specific emission impact from this pattern
SCI = ((E * I) + M) per R

Choosing a region based on the carbon intensity will impact SCI as follows:

  • I: By selecting the region having lower carbon intensity

e.g.
Region A is in the closest to users compared to Region B

assuming,
for Region A
E = 3
I = 10
M = 1
R = 1

for Region B
E = 5 (Increased due to longer proximity)
I = 5 ( Decreased due to the region having lower carbon intensity)
M = 2 (Increased due to increase in total number of computing equipment traversed)
R = 1 (Same rate)

SCI for region A = ((3 * 10) + 1) / 1 = 31
SCI for region B = ((5 * 5) + 2) / 1 = 27

Hence, Region B should be preferred even if it isn't the closest to the use.

References to this pattern
New concept to the best of our knowledge

Additional context
e.g. Get carbon intensity of electricity consumed for Europe (Stockholm) Region (display aggregated data on yearly basis)
image

@markus-gsf-seidl
Copy link
Contributor

Hi!

Thanks for your submission!

I would suggest to add this into the "Choose the region that is closest to users" pattern instead of creating a new one. There is also one additional pattern for background tasks and jobs, that is exactly like this #128 .
I think it makes more sense to broaden these two patterns instead of creating a new one. We already have already a lot of patterns for the cloud topic (also thinking about all the PRs still in the pipe).

@sharibj
Copy link
Author

sharibj commented Sep 13, 2023

Thanks for your response.
This isn't exactly like #128 as the later only talks about running some independent jobs in a different region whereas this talks about the entire application.
However, I agree that it's strongly tied to "Choose the region that is closest to users" and I like the idea of broadening it instead.
I'll use this issue to broaden the existing pattern instead.

@russelltrow russelltrow added proposed pattern An idea for a new pattern to submit initial review labels Sep 25, 2023
katerynao added a commit to kreuzwerker/patterns that referenced this issue Sep 29, 2023
…d region to include location-based carbon intensity

Signed-off-by: Kateryna Oliferchuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
initial review proposed pattern An idea for a new pattern to submit
Projects
None yet
Development

No branches or pull requests

4 participants