Our current Locust load tests were configured independently and differently during development of each individual service. This makes it hard to compare the results between services and it might make the number unreliable in some cases. We need to standardize the configuration and fix several issues to make load tests useful for capacity planning.
Current State
- Global config users 2 concurrent test users
- Wait times between subsequent requests for each user very between each service anywhere from 0s to 5s
- Inconsistent patterns across test files (host config, wait times, task weights)
Initial proposals:
- Standardize wait times to between(0, 0.1) for throughput testing
- Use a consistent pattern of 2 concurrent users for single worker deployed in a service. Services using multiple workers should scale concurrent users accordingly.
- Add response validation to all tests (currently only edit_check validates)