Thijs Feryn - Distributed load testing with k6

Distributed load testing with k6: Learn how to define virtual users, set iterations and views, and visualize metrics using Grafana, from experienced k6 user Thijs Feryn.

Key takeaways
  • K6 is a fast and lightweight load testing tool that can perform distributed testing with ease.
  • K6 supports distributed testing by allowing you to define virtual users (VUs) and set the number of iterations and views for each test.
  • Tags can be used to segment tests and define different groups of checks and thresholds.
  • K6 provides a scripting language in JavaScript, which can be used to define scenarios and executors.
  • The K6 run command provides metadata and metrics, including times to first byte, total request duration, and rates.
  • Thresholds can be set to evaluate the performance of the system, and checks can be used to verify the output.
  • Metrics can be visualized using Grafana, and threshold values can be set to determine when a test fails.
  • K6 provides a set of predefined functions for common scenarios, such as HTTP requests and parsing JSON responses.
  • Distributed testing can be controlled using K6’s executors, which can be configured to run tests in parallel.
  • VUs can be configured to mimic different user behaviors, such as browser testing and HLS video testing.
  • K6 provides a Prometheus integration, allowing for real-time monitoring of metrics.
  • The tool has a low barrier of entry and can be used for small-scale testing, making it accessible to developers and non-technical users alike.