cncf / tag-env-sustainability

🌳🌍♻️ TAG Environmental Sustainability
https://tag-env-sustainability.cncf.io/
Apache License 2.0
234 stars 112 forks source link

[Action] How can you rightsize your Kubernetes workloads to optimize for environmental sustainability? #392

Open xamebax opened 5 months ago

xamebax commented 5 months ago

Description

There are multiple ways to scale your workloads inside Kubernetes.

There is a tension between scaling workloads horizontally and vertically. Being too conservative when scaling can lead to throttling and slow performance, with the risk of Pods being OOMKilled. Being too liberal, on the other hand, can lead to wasting resources by either running Pods that are too big, or running too many Pods.

What's the most environmentally efficient way to rightsize workloads running on Kubernetes? Can this be achieved with default Kubernetes behavior? Or is a custom autoscaler a necessary addition?

In another issue, contributors suggested looking into:

Note: this could turn out to be a substantial piece of work to do on one's own.

Outcome

A recommendation in our working document that helps the reader make a choice on how they can rightsize their workloads with environmental sustainability in mind. Would using kube-green, sleepcycles, or Keda offer benefits here? How would that look? It would be great to say a few words about expected effort if changes to the cluster are required, and how big that effort could be (small, medium, large). Additionally, if possible, it would be great to add optional, extra reading material with added context if the reader's interested and has time.

To-Do

Code of Conduct

Comments

@mkorbi, @JacobValdemar - I'd love your input on this task's wording and scoping. Do you think it's actionable enough, or too vague? Anything worth adding?

graz-dev commented 5 months ago

Hi, as my mext contribution to the project I can start working on this issue by the end of this week and the star of the next one. Is ok for you?

@JacobValdemar @xamebax

JacobValdemar commented 5 months ago

@graz-dev Fine with me, but let's hear what @xamebax thinks. After all, she is the assignee on this issue ☺️

xamebax commented 5 months ago

@graz-dev this is great, go for it! I'm assigned as the creator, and I haven't done any work on this other than create the ticket. :D I'm sorry it took me so long to reply, I am hoping this wasn't demotivating. I can go ahead and assign you!

graz-dev commented 5 months ago

Yep @xamebax assign it to me! I can work on it in the following days 😁

xamebax commented 4 months ago

@graz-dev done!

@akyriako do I remember correctly you were interested in participating in this one?

akyriako commented 4 months ago

Hi @xamebax , yes you do remember correct :+1: Please let me know where/how I could assist.