Skip to content

Commit

Permalink
Merge pull request #9053 from harness/CHAOS-7288
Browse files Browse the repository at this point in the history
CHAOS-7288 Content to Linux faults
  • Loading branch information
SmritiSatya authored Jan 16, 2025
2 parents 266662b + 5f742b4 commit a38804f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This fault uses [`stress-ng`](https://github.com/ColinIanKing/stress-ng), which
<tr>
<td> load </td>
<td> Percentage load to be exerted on a single CPU core. </td>
<td> Default: 100 %. </td>
<td> Default: 100 %. 0 refers to no load and 100 refers to full load. </td>
</tr>
<tr>
<td> workers </td>
Expand Down Expand Up @@ -81,6 +81,11 @@ spec:
The `load` input variable exerts the CPU load (in percentage) per core.

:::tip
- The load generated by the stress process may vary based on factors like overall processor load and the responsiveness of the system scheduler.
- It is recommended that the number of CPU cores provided as input should be equal to or greater than the total number of logical CPU cores.
:::

The following YAML snippet illustrates the use of this input variable:

[embedmd]:# (./static/manifests/linux-cpu-stress/load.yaml yaml)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import FaultPermissions from './shared/fault-permissions.md'

Linux disk IO stress applies stress on the disk of the target Linux machines over I/O operations for a specific duration.

It aims to consume the I/O bandwidth by performing frequent writes and reads to and from the disk, respectively. Consequently, the size of the file created for this operation changes frequently.

:::tip
To understand the impact of the fault, check the available I/O bandwidth before and during chaos.
:::

![Linux disk IO stress](./static/images/linux-disk-io-stress.png)

## Use cases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ spec:
The `memory` input variable specifies the amount of memory to be filled.

:::tip
- The `stress-ng` package attempts to utilize a percentage of the available free memory using each stressor process.
- It is recommended that the number of workers should be equal to or greater than the total number of logical CPU cores.
:::

The following YAML snippet illustrates the use of this input variable:

[embedmd]:# (./static/manifests/linux-memory-stress/memory.yaml yaml)
Expand Down

0 comments on commit a38804f

Please sign in to comment.