Hog Scenarios

Hog Scenarios background

Hog Scenarios are designed to push the limits of memory, CPU, or I/O on one or more nodes in your cluster. They also serve to evaluate whether your cluster can withstand rogue pods that excessively consume resources without any limits.

These scenarios involve deploying one or more workloads in the cluster. Based on the specific configuration, these workloads will use a predetermined amount of resources for a specified duration.

Config Options

Common options

OptionTypeDescription
durationnumberthe duration of the stress test in seconds
workersnumber (Optional)the number of threads instantiated by stress-ng, if left empty the number of workers will match the number of available cores in the node.
hog-typestring (Enum)can be cpu, memory or io.
imagestringthe container image of the stress workload
namespacestringthe namespace where the stress workload will be deployed
node-selectorstring (Optional)defines the node selector for choosing target nodes. If not specified, one schedulable node in the cluster will be chosen at random. If multiple nodes match the selector, all of them will be subjected to stress. If number-of-nodes is specified, that many nodes will be randomly selected from those identified by the selector.
number-of-nodesnumber (Optional)restricts the number of selected nodes by the selector

Available Scenarios

Hog scenarios: