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 self-contained setup for load test #275

Merged
merged 5 commits into from
Sep 9, 2021

Conversation

pianohacker
Copy link
Contributor

Create needed org, datasource, and dashboard automatically.

Copy link
Contributor

@AgnesToulet AgnesToulet left a comment

Choose a reason for hiding this comment

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

Looks good but some files are missing from this PR to be able to test it.

devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
devenv/loadtest/modules/client.js Outdated Show resolved Hide resolved
devenv/loadtest/modules/client.js Outdated Show resolved Hide resolved
devenv/loadtest/modules/client.js Outdated Show resolved Hide resolved
devenv/loadtest/render_test.js Show resolved Hide resolved
@pianohacker pianohacker force-pushed the pianohacker/load-test-self-contained-setup branch from 46e9db4 to 1bc0237 Compare August 30, 2021 18:02
Copy link
Contributor

@AgnesToulet AgnesToulet left a comment

Choose a reason for hiding this comment

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

Tested with my local dev instance and the HA setup and it works pretty good (with a few updates for Windows, I'll update the doc), great work on this!

devenv/loadtest/run.sh Outdated Show resolved Hide resolved
devenv/loadtest/modules/client.js Outdated Show resolved Hide resolved
devenv/loadtest/modules/client.js Outdated Show resolved Hide resolved
devenv/loadtest/modules/util.js Outdated Show resolved Hide resolved
devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
devenv/loadtest/run.sh Show resolved Hide resolved
devenv/loadtest/render_test.js Outdated Show resolved Hide resolved
pianohacker and others added 2 commits September 1, 2021 11:00
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
loadimpact/k6:master run \
--vus $vus \
--duration $duration \
$iterationsOption \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$iterationsOption \
--iterations $iterations \

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this would cause the script to fail if $iterations is not specified. And you want the ability to leave the option out entirely, so you can do things like "run as many iterations as possible over 5 minutes".

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes you're right! OK, then, I guess you can merge 🙂

@pianohacker pianohacker merged commit 4f3a10f into master Sep 9, 2021
@pianohacker pianohacker deleted the pianohacker/load-test-self-contained-setup branch September 9, 2021 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants