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 initial load tests #3331

Merged
merged 13 commits into from
Jun 5, 2024
Merged

Add initial load tests #3331

merged 13 commits into from
Jun 5, 2024

Conversation

bryanhuhta
Copy link
Contributor

@bryanhuhta bryanhuhta commented May 30, 2024

This is the initial pass at adding load tests with k6. Right now we only are testing read APIs. To run a load test against a local Pyroscope, run:

./tools/k6/run.sh reads.js

To run a load test against a remote Pyroscope, configure your .env file correctly (see tools/k6/README.md for more details) and run:

./tools/k6/run.sh -c reads.js

To view all available load tests, run

./tools/k6/run.sh -h

@bryanhuhta bryanhuhta self-assigned this May 30, 2024
@bryanhuhta bryanhuhta requested a review from a team as a code owner May 30, 2024 23:07
tools/k6/reads.js Outdated Show resolved Hide resolved
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

tools/k6/reads.js Outdated Show resolved Hide resolved
bryanhuhta and others added 3 commits June 5, 2024 16:34
Make the reads load test more configurable by environment variables. Also
adds a run.sh bash script to help make it more convient to kick off load tests.
Partially revert changes to Pyroscope itself.
@bryanhuhta bryanhuhta merged commit 4837be6 into main Jun 5, 2024
16 checks passed
@bryanhuhta bryanhuhta deleted the k6-load-tests branch June 5, 2024 22:55
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