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
22 stars 12 forks source link

[Proposal] Efficient and Greener way to use k8s cluster for benchmarking tasks #67

Open dipankardas011 opened 4 months ago

dipankardas011 commented 4 months ago

Proposal

Context: Use of autoscaler to scale the cluster up / down

Why: Assuming that benchmarking or other tasks related to specific projects run only for finite intervals, also that the the event of doing this is MP is a release event for all supported projects

Expected outcome: when we have to run specific project benchmark tasks we can use the OpenTOFU to add a node and we can attach node labels, etc. and then we can schedule our workload to it. once done with all the processing of the tasks we can store the results in Grafana or something and then de-provision the node we allocated to free up the node we provisioned before

Achievement: reduced costs, also demonstrates how can we optimize the Tests on each project

Challenges:

rossf7 commented 2 months ago

@dipankardas011 Thanks again for creating this proposal. Reducing the footprint of the cluster is important to us as a WG and will be important as we onboard more projects.

We deferred this from the Q2 pipeline automation work we are starting. This is because the scope of that work is already large. However IMO the automation we will be developing in #84 would also help with this in future.

There are some challenges here and I expect it will take around 10 mins to join nodes to the cluster. However none of the metrics we capture are time sensitive and the benchmarking also takes time so I don't see that as a blocker.