~/talk

Distributed load testing with k6

Talkat NDC London 2024 · 2024-01-29..02-02· [testing, javascript]
slides:none on file

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

  1. 0:00Introduction and background
  2. 1:06Varnish and performance
  3. 4:23Why choose k6 for testing
  4. 5:24Getting started with k6
  5. 8:08Execution and running tests
  6. 10:06Scaling and test logic
  7. 12:06Advanced request handling
  8. 14:48Checks in k6
  9. 17:00Defining thresholds
  10. 18:46Categorizing with tags
  11. 21:03Grouping requests
  12. 22:03Test lifecycle stages
  13. 24:32Accessing and custom metrics
  14. 27:10Managing result output
  15. 29:22Real-time metrics with Prometheus
  16. 32:04Visualization with Grafana
  17. 34:40Orchestrating distributed tests
  18. 38:28Scenarios and execution plans
  19. 44:27Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.