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

chore: Add logic to scale out/in the AKS cluster on every e2e test execution #4456

Merged
merged 3 commits into from
May 2, 2023

Conversation

JorTurFer
Copy link
Member

@JorTurFer JorTurFer commented Apr 14, 2023

For reducing costs, this PR scales out the cluster to current nodes (4) before the tests execution and scales in the cluster again after them.
I have checked the stop option but based on documentation, we shouldn't stop/start the cluster too often, and we can execute several times the test in a row, stopping and starting the cluster in less than the recommended 15-30 minutes.

As we cannot guarantee the period between stop/starts, I guess that it's better if we only reduce the cluster size.

This process increases the execution time 3-5 minutes per execution

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - [learn more]

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
@JorTurFer JorTurFer requested a review from a team as a code owner April 14, 2023 22:25
@JorTurFer JorTurFer changed the title chore: Add logic to scale out/in the AKS cluster on every test execution chore: Add logic to scale out/in the AKS cluster on every e2e test execution Apr 14, 2023
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
@JorTurFer
Copy link
Member Author

JorTurFer commented Apr 15, 2023

I skip e2e test because as the pipeline is executed from main branch, this PR can't be tests with the e2e tests (because the changes are in my branch and not in main branch)

@JorTurFer
Copy link
Member Author

@tomkerkhove , @zroubalik , an ACK please? 🙏

@tomkerkhove
Copy link
Member

I still need to review it, sorry!

@JorTurFer JorTurFer enabled auto-merge (squash) April 25, 2023 06:10
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
@JorTurFer JorTurFer merged commit de41358 into kedacore:main May 2, 2023
@JorTurFer JorTurFer deleted the scale-nodes branch May 2, 2023 08:43
JorTurFer added a commit to JorTurFer/keda that referenced this pull request May 2, 2023
geoffrey1330 pushed a commit to geoffrey1330/keda that referenced this pull request Oct 4, 2023
…ecution (kedacore#4456)

Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants