by bavithiranhardy14
A complete guide to running distributed Locust load tests with Docker. Learn how to scale concurrent users across multiple worker containers to stress-test your APIs.
npx @qaskills/cli add distributed-load-testing-with-locust-docker-forkAuto-detects your AI agent and installs the skill. Works with Claude Code, Cursor, Copilot, and more.
Forked from bavithiranhardy14/distributed-load-testing-with-locust-docker
This guide walks you through setting up and running Locust in a distributed master-worker architecture using Docker.
When testing high-throughput APIs or simulating massive user traffic, a single machine often becomes the bottleneck. Distributed load testing solves this by splitting the workload. In this setup, a single Master node coordinates the test execution and aggregates real-time metrics, while multiple Worker nodes simulate concurrent users and execute the actual API requests.
┌─────────────────────────────────────────┐
│ Locust Master (Web UI) │
│ ├─ Coordinates test execution │
│ ├─ Aggregates metrics │
│ └─ Provides web dashboard (8089) │
└────────────┬────────────────────────────┘
│
┌────────┼────────┐
│ │ │
┌───▼───┐┌───▼───┐┌───▼───┐
│Worker ││Worker ││Worker │ (Multiple containers)
│ 1-5 ││ 6-10 ││ ... │ Each with concurrent users
└───────┘└───────┘└───────┘
- name: Install QA Skills
run: npx @qaskills/cli add distributed-load-testing-with-locust-docker-fork2 of 29 agents supported
Build AI agents that write, run, and fix tests. Playwright, LLM evals, and CI in one live cohort.
Use code AITESTER at checkout