> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/faults/chaos-fault-categories/load/load.md).

# Chaos faults for load generation

### Introduction <a href="#introduction" id="introduction"></a>

Load generation faults drive synthetic traffic at a target service so you can test how the workload behaves under load: whether the SLO holds, whether the HPA scales correctly, and whether monitoring detects saturation within the alerting SLA. Use them to validate the resilience of an application against a controlled, reproducible workload.

<table data-view="cards"><thead><tr><th></th><th></th><th><select multiple><option value="K2XMt_5P" label="load" color="blue"></option><option value="dwW36Uzv" label="k6" color="blue"></option><option value="ROWQcIop" label="loadgen" color="blue"></option><option value="BvEwx2jn" label="locust" color="blue"></option></select></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>k6 loadgen</strong></td><td>Run a Grafana k6 script against a target HTTP endpoint for a configurable duration so you can test how the workload behaves under scripted load.</td><td><span data-option="K2XMt_5P">load, </span><span data-option="dwW36Uzv">k6, </span><span data-option="ROWQcIop">loadgen</span></td><td><a href="#k6-loadgen">#k6-loadgen</a></td></tr><tr><td><strong>Locust loadgen</strong></td><td>Run a Locust script against a target HTTP endpoint for a configurable duration so you can test how the workload behaves under Python-defined load.</td><td><span data-option="K2XMt_5P">load, </span><span data-option="BvEwx2jn">locust, </span><span data-option="ROWQcIop">loadgen</span></td><td><a href="#locust-loadgen">#locust-loadgen</a></td></tr></tbody></table>

#### k6 loadgen <a href="#k6-loadgen" id="k6-loadgen"></a>

k6 loadgen runs a [Grafana k6](https://grafana.com/docs/k6/) script against a target HTTP endpoint for a configurable duration. Use it for scripted, programmable load tests with rich thresholds and metrics.

<details>

<summary>Use cases</summary>

Test how a service behaves under realistic, scripted load: whether end-to-end latency stays inside the SLO, whether the HPA scales correctly, and whether downstream dependencies absorb the load.

</details>

<a href="/resilience-testing/chaos-engineering/faults/chaos-fault-categories/load/k6-loadgen.md" class="button primary">View details</a>

#### Locust loadgen <a href="#locust-loadgen" id="locust-loadgen"></a>

Locust loadgen runs a [Locust](https://locust.io/) script against a target HTTP endpoint for a configurable duration. Use it when you want a Python-based load profile and a rich UI dashboard during the run.

<details>

<summary>Use cases</summary>

Test how a service behaves under a Python-defined load profile: whether end-to-end latency stays inside the SLO, whether the HPA scales correctly, and whether downstream dependencies absorb the load.

</details>

<a href="/resilience-testing/chaos-engineering/faults/chaos-fault-categories/load/locust-loadgen.md" class="button primary">View details</a>

{% @harness-feedback/feedback %}
