---
title: "Test system endurance with k6 soak testing | Grafana Labs"
description: "Welcome to the Grafana learning path that shows you how to test system endurance with k6 soak testing—design long-plateau profiles, stream results to Grafana Cloud k6, and document gradual degradation."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Test system endurance with k6 soak testing

Welcome to the Grafana learning path that builds on [Run your first k6 performance test](/docs/learning-paths/run-first-k6-test/), [Establish a performance baseline with k6](/docs/learning-paths/establish-k6-baseline/), and [Find your system’s limits with k6](/docs/learning-paths/find-k6-limits/). [Soak testing](/docs/k6/latest/testing-guides/test-types/soak-testing/) extends an average-load profile: the load level stays near what you already measured in baseline testing, but the plateau runs much longer. That longer window surfaces time-dependent problems such as memory growth, connection pool limits, disk fill, and gradual latency drift.

This path builds on [Establish a performance baseline with k6](/docs/learning-paths/establish-k6-baseline/). For the full k6 series sequence, consider [Find your system’s limits with k6](/docs/learning-paths/find-k6-limits/) first if you haven’t already. You practice on [QuickPizza](https://quickpizza.grafana.com); a 30-minute learning run may show flat metrics, but the same steps (design the profile, stream to Grafana Cloud k6, watch trends, document degradation) apply to your own stack.

The diagram below shows the soak shape you build in this path: ramp up, a long plateau at moderate load, then ramp down. It follows the [Soak testing](/docs/k6/latest/testing-guides/test-types/soak-testing/) overview pattern; this path uses a **30-minute** plateau for learning. Production soaks often run 2 to 8 hours or longer.

## Here’s what to expect

When you complete this path, you’ll be able to:

- Explain how soak testing differs from average-load testing (duration, not load shape)
- Design a soak profile with ramp-up, a sustained plateau, and ramp-down using k6 `stages`
- Stream k6 results to Grafana Cloud k6 and read trends mid-test
- Set degradation thresholds with `abortOnFail` and `delayAbortEval` for a learning-duration run
- Correlate k6 metrics with infrastructure dashboards when degradation appears
- Document degradation onset, rate, and category for follow-up work

## Before you begin

Before you test system endurance with k6 soak testing, ensure that you have:

- A Grafana Cloud account. To create an account, refer to [Grafana Cloud](/signup/cloud/connect-account).
- k6 installed on your machine. To install k6, refer to [Install k6](/docs/k6/latest/set-up/install-k6/).
- Basic knowledge of JavaScript (k6 scripts are written in JavaScript).
- A code editor such as [Visual Studio Code](https://code.visualstudio.com/) or [Cursor](https://www.cursor.com/).
- Access to a terminal or command line interface.

## Troubleshooting

If you get stuck, we’ve got your back! Where appropriate, troubleshooting information is just a click away.

## More to explore

We understand you might want to explore other capabilities not strictly on this path. We’ll provide you opportunities where it makes sense.
