Steadybit logoResilience Hub
Try SteadybitGitHub icon
Steadybit logoResilience Hub

Stress CPU

AttackAttack
Generate CPU load for one or more cores. The resources on a host are shared between containers. Running a resource attack for a container is executed in the containers namespace, but affects the host's resources and all containers running on it.
Targets:
Containers
Install now

Stress CPU

Generate CPU load for one or more cores. The resources on a host are shared between containers. Running a resource attack for a container is executed in the containers namespace, but affects the host's resources and all containers running on it.
AttackAttack
Targets:
Containers
Install now

Stress CPU

AttackAttack
Generate CPU load for one or more cores. The resources on a host are shared between containers. Running a resource attack for a container is executed in the containers namespace, but affects the host's resources and all containers running on it.
Targets:
Containers
Install now

Stress CPU

Generate CPU load for one or more cores. The resources on a host are shared between containers. Running a resource attack for a container is executed in the containers namespace, but affects the host's resources and all containers running on it.
AttackAttack
Targets:
Containers
Install now
Go back to list

Introduction

Generate CPU load for one or more cores

Usage

The resources on a host are shared between containers. Running a resource attack for a container is executed in the containers cgroup, but affects the host's resources and all containers running on it.

Use Cases

  • Test your application's resilience to high CPU load

Parameters

ParameterDescriptionDefault
CPU LoadHow many CPU should be consumed?100
Container CPUsHow many workers should be used to stress the CPU?All Cores
DurationHow long should CPU be consumed?30s

Frequently Asked Questions (FAQs)

Q: My container has a limit of 500m, set the attack to 100% load but only observe 35-45% CPU usage. Why?

A: stress-ng under the hood generates the load and tries to meet the targeted load, but the Kernel scheduler may assign fewer CPU time slots to the process, resulting in lower CPU usage than desired. For target containers with a higher limit, the desired CPU load is more likely to be met.

Useful Templates (4 of 7)

See all
Stress CPU of Kubernetes DaemonSet

Learn how easy you can stress CPU of an entire Kubernetes DaemonSet.

DaemonSet
Starter
Snippet
Kubernetes
CPU
Containers
Stress CPU progressively of Kubernetes DaemonSet

Stress the CPU of a Kubernetes DaemonSet progressively to see at which percentage it will be killed by Kubernetes.

Structure

We start by stressing 50% of the Kubernetes DaemonSet's CPU for 30 seconds. Next, we stepwise stress the CPU by 75%, 90%, and 100% - each for 30 seconds. In between, we have small wait steps to ease analysis in external observability tools for each phase.

Progressive
CPU
DaemonSet
Snippet
Kubernetes
Containers
Stress CPU progressively of Kubernetes Deployment

Stress the CPU of a Kubernetes Deployment progressively to see at which percentage it will be killed by Kubernetes.

Structure

We start by stressing 50% of the Kubernetes Deployment's CPU for 30 seconds. Next, we stepwise stress the CPU by 75%, 90%, and 100% - each for 30 seconds. In between, we have small wait steps to ease analysis in external observability tools for each phase.

Progressive
Deployment
CPU
Snippet
Kubernetes
Containers

More Container Actions

See all
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Container
Kubernetes
CPU
Homepage
hub.steadybit.com/extension/com.steadybit.extension_container
License
MIT
MaintainerSteadybit
Install now
Steadybit logoResilience Hub
Try Steadybit
© 2025 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon