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

Add virt capacity benchmark test #180

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

ygalblum
Copy link
Contributor

Type of change

  • New feature

Description

Run Virtualization with Storage Capacity Benchmark test

@ygalblum ygalblum requested review from a team as code owners January 28, 2025 17:58
@ygalblum ygalblum force-pushed the capacity-benchmark branch 2 times, most recently from 79662a2 to e1c8ba7 Compare January 31, 2025 16:25
@ygalblum ygalblum force-pushed the capacity-benchmark branch 4 times, most recently from 8388e87 to 68f1b43 Compare February 6, 2025 16:46
common.go Outdated
@@ -70,3 +90,175 @@ func GatherMetadata(wh *workloads.WorkloadHelper, alerting bool) error {
}
return nil
}

// GenerateSSHKeyPair generates an SSH key pair and saves them to the specified files
func generateSSHKeyPair(sshKeyPairPath string) (string, string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this go into go-commons please? Looks like nice function to be reused across our tooling.

common.go Outdated
return getVolumeSnapshotClassNameForProvisioner(provisioner)
}

func virtctlExists() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the functions in this file seem to be commonly used across all the virtualization portifolio. Can we move all of them to go-commons please?

@ygalblum
Copy link
Contributor Author

I've updated the code. However, it now depends on changes made in https://github.com/cloud-bulldozer/go-commons/. Once the all changes are merged and the dependency is updated here, this code change will compile successfully

@ygalblum ygalblum force-pushed the capacity-benchmark branch 3 times, most recently from d512e42 to b6fd4ac Compare February 20, 2025 15:28
- name: create-vms
jobType: create
jobIterations: 1
qps: 20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why in the first job you have the CNV default of 5/10 for QPS/Burst -- but here and further down you default to 20/20?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I didn't put too much thought into it. Especially since most of the jobs are pretty small. So, not sure it even matters. Which values would you recommend here?

@ygalblum
Copy link
Contributor Author

@vishnuchalla I've added nobs that allow skipping some checks and setting some values so that the test can pass with the CI cluster. Hopefully the test will pass in the CI as well (along with the checks I've added)

@ygalblum ygalblum force-pushed the capacity-benchmark branch 2 times, most recently from 30c1822 to 801fbe3 Compare February 24, 2025 14:45
@ygalblum ygalblum mentioned this pull request Feb 24, 2025
@ygalblum
Copy link
Contributor Author

The CI is failing because the BeforeCleanup script is implemented for bash while the default shell in Ubuntu (which is the runner) is dash. I'm looking into how to address this. Probably need to address it in kube-burner

@ygalblum ygalblum force-pushed the capacity-benchmark branch 3 times, most recently from 8550825 to c6c9941 Compare February 25, 2025 18:51
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
@ygalblum
Copy link
Contributor Author

@vishnuchalla PTAL. I solved the CI issue by changing the script so that it will work also on dash.

Copy link
Contributor

@vishnuchalla vishnuchalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vishnuchalla vishnuchalla merged commit 6e31617 into kube-burner:main Feb 25, 2025
4 checks passed
@ygalblum ygalblum deleted the capacity-benchmark branch February 25, 2025 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants