Skip to main content
InterviewHubPRO
Section Overview
Q33

Question 33 of 50

Part 3: Advanced Internals, Scale & Production Quality (Senior / Lead)

66%
Software Testing & QA (50 Qs)•Part 3: Advanced Internals, Scale & Production Quality (Senior / Lead)

Distributed Load Testing with k6 and Locust.

senior LevelTestingSystem Design

In Simple Words: A single generator machine can only generate ~30,000 requests/second before exhausting host sockets and CPU:

  • Distributed k6 (k6-operator on Kubernetes):
    • Deploys a custom resource (K6) in Kubernetes that spawns 20 runner pods across worker nodes.
    • Coordinates test execution and aggregates metrics into a single real-time dashboard.
    • Generates hundreds of thousands of requests per second to stress-test cloud load balancers and database clusters.