department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Spike: Research load testing patterns #86866

Closed baltes closed 2 months ago

baltes commented 2 months ago

Investigate load testing patterns already in place and see what we might implement.

Acceptance criteria

cloudmagic80 commented 2 months ago

https://depo-platform-documentation.scrollhelp.site/developer-docs/load-tests

Load Testing Tools:

Our load testing arsenal includes two primary tools: Locust and wrk2.

Locust:

Strengths: Easy to define test behavior with Python code. Interactive testing through a web interface. Creates swarms of test instances for high load simulation. Provides detailed latency measurements for individual request paths. Weaknesses: Text output format can be limiting for scripted testing and report generation (current version). wrk2:

Strengths: Claims more accurate latency measurements using HdrHistogram and coordinated omission. Simple to trigger tests against a single endpoint. Supports scripting test behavior in Lua for complex scenarios. Well-defined report format with the ability to customize reporting via Lua scripting. Weaknesses: Installation instructions require referring to the wiki

cloudmagic80 commented 2 months ago
Screenshot 2024-07-01 at 10.30.40 AM.png
cloudmagic80 commented 2 months ago

We can start working on this. I was able to complete the spike ticket