All faults / Compute & platform
Memory pressure: chaos experiment
Allocates more memory than the limit permits. The kernel kills the container, the kubelet restarts it, and repeated kills push the pod into CrashLoopBackOff.
What it tests
memory limits, OOMKilled handling, crash loop backoff
memory limits, OOMKilled handling, crash loop backoff
The hypothesis holds when
A memory limit contains the kill to one container, which restarts cleanly while the others serve.
A memory limit contains the kill to one container, which restarts cleanly while the others serve.
It breaks when
No limit means the pressure spreads to the node and the kubelet evicts neighbours by QoS class.
No limit means the pressure spreads to the node and the kubelet evicts neighbours by QoS class.
Reference
The same fault in other tools
- Chaos Mesh: StressChaos
- LitmusChaos: pod-memory-hog
- ChaosBlade: blade create k8s pod-mem load
- Chaos Monkey: no equivalent
Generated manifests and commands are on the Export tab. Confirm flags for your version before running them.
Run this experiment in your browser
Runs in the simulator and against a live cluster.