Process Killer Experiment
The Process Killer experiment kills targeted processes over a supplied interval throughout the length of the experiment.
When targeting processes with the <span class="code-class-custom">--process argument</span>, you can pass a regular expression, which matches processes in the same way that pgrep(1) does, or you can pass a specific Process ID (PID). When passing a regular expression, Gremlin will only match on the process name (<span class="code-class-custom">arg0</span>) unless <span class="code-class-custom">--full</span> is also supplied.
Terminating PID 1
PID 1 is most commonly reserved for the init process. On hosts, Process Killer does not work for PID 1. Instead, you should use a Shutdown experiment. On container-based systems (e.g. Kubernetes), you can terminate PID 1, which has the same effect as running a Shutdown experiment.
The only exception is if you want to repeatedly terminate a container process, which is only possible with Process Killer. In that case, you would need to run Process Killer on the container host, ensure that the Gremlin agent is deployed with <span class="code-class-custom">hostPID</span> set to <span class="code-class-custom">true</span>, and select the container process from the host.
Linux
The Process Killer experiment sends the signal supplied by <span class="code-class-custom">--signal</span> (defaults to <span class="code-class-custom">KILL</span>) to processes identified by the rest of the supplied arguments.
This experiment requires the <span class="code-class-custom">KILL</span> capability, which is enabled by default at installation time. See capabilities(7)