Using k6 Thresholds to Automate SLA Validation in Load Tests
Learn how k6 thresholds let you embed SLA rules directly into load‑test scripts, automate PASS/FAIL decisions, and gate CI/CD pipelines with clear exit codes.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how k6 thresholds let you embed SLA rules directly into load‑test scripts, automate PASS/FAIL decisions, and gate CI/CD pipelines with clear exit codes.
k6 runs each Virtual User in its own Goja runtime on a goroutine — great for I/O-bound load, dangerous for CPU-heavy scripts. An architecture note on sizing one generator correctly and knowing when to split.
Learn how to load dynamic data from a CSV file into Gatling simulations, choose the right feeder strategy, and verify the behavior without risking memory overload.
Closed-model injection hides saturation behind polite virtual users. Here is how Gatling's open and closed steps differ, and how to pick one deliberately.
Learn how to compose realistic, multi-protocol load profiles in a single k6 script using scenarios and executors. Includes a worked example with HTTP, WebSocket, and gRPC flows, plus trade-offs like arrival-rate overshoot and graceful-stop cutoffs.
Learn how to combine Gatling’s CSV feeder with a constantUsersPerSec injection profile to run a steady‑rate load test, including setup, execution checks, and practical limitations.
Learn how Gatling’s CSV feeder injects real data into virtual users, enabling realistic load tests. The article covers setup, usage, debugging, trade‑offs, and a step‑by‑step example.
Learn how Gatling feeders inject dynamic test data from CSV, JSON, JDBC, Redis or custom sources, with a concrete example, setup steps, and key limitations to watch.
Learn how k6’s http.batch lets a single virtual user send multiple HTTP requests in parallel, with a worked example, trade‑offs, and verification steps.