Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CNCF Live Webinar: Running distributed load tests with the Grafana k6-operator

Paul Balogh
November 08, 2022

CNCF Live Webinar: Running distributed load tests with the Grafana k6-operator

Paul Balogh

November 08, 2022
Tweet

More Decks by Paul Balogh

Other Decks in Technology

Transcript

  1. Overview 1 2 3 4 What is k6? What is

    load testing? Introducing the k6-operator Where do we go from here?
  2. • Formerly known as Load Impact • Open Source since

    2016 • ~18.5k Github Stars • Promote “shift-left” testing github.com/grafana/k6 • Acquired by Grafana in 2021
  3. By bringing k6 and Grafana together, we enable teams to

    radically improve the time to prevent, detect, and remediate problems before they impact end users. Raj Dutt Grafana Labs CEO/Co-founder
  4. Integration Testing Contract Testing k6: a reliability testing tool Browser

    Automation (E2E) Load Testing Functional Testing Chaos Testing
  5. Although it’s easy to get started with k6 [OSS] all

    on its own, it really shines with its ease of integration into a developer ecosystem. Thoughtworks Technology Radar April 2021
  6. OSS is at the heart of what we do and

    helps leave the world a little better than we found it CLI and API designed for automating your tests with pass/fail criteria using JavaScript syntax A k6 engine written in Go making it one of the the best performing tools available Use Go(lang) code to add support for new outputs, protocols, and products from within your test scripts OpenSource Scriptable Performant Extensible k6: a reliability testing tool
  7. Overview 1 2 3 4 What is k6? What is

    load testing? Introducing the k6-operator Where do we go from here?
  8. Load testing is the process of putting demand on a

    system and measuring its response. The Internet Knower of all things
  9. • Performance testing == load testing • It is only

    for large companies • Is expensive to do • Should only be in production • Unnecessary if you have o11y Myths about load testing
  10. Constant Arrival Rate Ramping Arrival Rate Ramping VUs Per VU

    iterations Constant VUs Shared iterations Modeling your load tests “Shape” activity with Executors
  11. Overview 1 2 3 4 What is k6? What is

    load testing? Introducing the k6-operator Where do we go from here?
  12. Same k6 test script, multiple execution modes! Custom Resource Definition

    (CRD) launcher kubectl create cm test-scripts –from-file=script.js
  13. Overview 1 2 3 4 What is k6? What is

    load testing? Introducing the k6-operator Where do we go from here?
  14. The “Golden Signals” Network quality, Geolocation Special events, Cyber attacks

    Bugs, 500s, Security/Auth Underprovisioning, Infra issues
  15. Pre-production Production Virtual User traffic Real User traffic Virtual User

    traffic System in Pre-prod System in production Proactively improve reliability
  16. k6.io/slack grafana/k6 community.k6.io Connect with Paul as @javaducky or linkedin/in/pabalogh

    Demonstration project available at github.com/javaducky/demo-k6-operator Thanks for participating!