Distributed load testing with k6
summary
k6 is used to run distributed load from geographically separate nodes (Ireland, US, Singapore) with a central control API on port 6565 that can pause/resume/scale tests; binaries get compiled with k6 + xk6 Prometheus exporter to expose metrics scraped by Prometheus and shown in Grafana dashboards updating every 5s. Examples include 300 VUs across 3 regions (100 each), synthetic status-code counters, checks and thresholds that halt runs, scenarios (externally controlled, shared vs per-VU, arrival rate) and realtime metrics via Prometheus.
AI-written summary · about
chapters (19)
- 0:00Introduction and background
- 1:06Varnish and performance
- 4:23Why choose k6 for testing
- 5:24Getting started with k6
- 8:08Execution and running tests
- 10:06Scaling and test logic
- 12:06Advanced request handling
- 14:48Checks in k6
- 17:00Defining thresholds
- 18:46Categorizing with tags
- 21:03Grouping requests
- 22:03Test lifecycle stages
- 24:32Accessing and custom metrics
- 27:10Managing result output
- 29:22Real-time metrics with Prometheus
- 32:04Visualization with Grafana
- 34:40Orchestrating distributed tests
- 38:28Scenarios and execution plans
- 44:27Closing remarks
related talks
45mDistributed load testing with k6
34mK8s load testing at scale with k6-operator
52mTalk with the Experts
48mPerformance Testing Workshop with k6
01h 55mWorkshop: Continuous Performance with k6 and Grafana
43mEmergent Load Testing Rules for Organized Chaos
18mPerformance Testing in Keptn Using K6
38mMasterclass "Route to the Heights with k6"
