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(load-testing): add k6 script for load testing #1998

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

halfwhole
Copy link
Collaborator

Problem

We'd like to test if our staging/production servers work well under load

Solution

Created a script for load testing that uses k6. The test lasts for roughly (slightly above) a minute, and the QPS is roughly (slightly under) NUM_VUS as configured in the script.

Notes:

  • We can't put k6 in dev dependencies unfortunately because the underlying k6 module isn't written in JS, so the user will have to install k6 on their local machine
  • k6 supports Datadog integrations, so we can do this in the future if we want to publish our stats from the load test

@halfwhole halfwhole force-pushed the chore/load-testing/add-k6-script-for-load-testing branch from c8799fc to 20802e4 Compare October 7, 2022 02:46
Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

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

lgtm!

@halfwhole halfwhole merged commit 7d05bcd into develop Oct 10, 2022
@halfwhole halfwhole deleted the chore/load-testing/add-k6-script-for-load-testing branch October 10, 2022 07:38
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