Distributed load testing with k6
summary
k6 is an open‑source JS-based load tester that runs locally, on k6 cloud, or as custom binaries; distributed runs send real‑time metrics to Prometheus scraped on port 9090 via an xk6 Prometheus module and visualized in Grafana. Tests use scenarios/executors, checks and thresholds (example: 95th percentile <200 ms), custom counters and trends, and the HTTP API on port 6565 to pause/scale remote runners. Demonstrated throughput reaches ~25 Gbps on a single node and multi‑region tests (Ireland, US, SG) work.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker background
- 4:50k6 introduction and capabilities
- 9:29Running k6 tests locally and in cloud
- 10:13Understanding k6 test outputs
- 11:56Virtual users, iterations and time
- 12:18HTTP requests and API testing
- 15:05Checks and assertions in k6
- 16:31Thresholds and test execution control
- 18:16Tags and test segmentation
- 20:19Groups and test hierarchy
- 21:25Testing lifecycle and setup functions
- 23:33Accessing and customizing metrics
- 27:06Real-time metrics and Prometheus integration
- 30:17Distributed testing with multiple instances
- 32:45Controlling tests via k6 API
- 35:32Scenarios and executors explained
- 40:25Externally controlled distributed testing
- 41:06Q&A and closing remarks
related talks
46mDistributed load testing with k6
34mK8s load testing at scale with k6-operator
52mTalk with the Experts
38mMasterclass "Route to the Heights with k6"
43mEmergent Load Testing Rules for Organized Chaos
48mPerformance Testing Workshop with k6
34mPerformance testing: from zero to hero with k6 & Azure
01h 55mWorkshop: Continuous Performance with k6 and Grafana
