StressChaos Experiment
StressChaos can generate plenty of stresses over a collection of pods. The stressors is injected into the target pods via the internally.
A StressChaos shares common configurations like other chaos, such as how to select pods, how to specify periodic chaos. You can refer to other docs for details. It defines stressors in either of the following two ways:
Usage
Below is an example YAML file of StressChaos which is set to burn 1 CPU for 30 seconds in every 2 minutes:
Create a namespace for your application. For example,
tidb-cluster-demo
:
Create your pods in the target namespace:
Then, your pod’s CPU will burn for 30 seconds.