Skip to main content

Windows Process Kill

Windows process kill kills the target processes that are running as a part of a Windows OS based VM. The services that are disrupted might be running in the VM, and this fault kills their underlying processes or threads.

Windows process kill

Use cases

Windows process kill:

  • Determines the resilience of an application (or process) running on the Windows VMs.
  • Induces process kill using the process IDs and process name on the target Windows machines.
  • Simulates loss of processes, leading to degradation in the performance of application on the machine.

Prerequisites

  • Ensure that the prerequisites are fulfilled before executing the experiment.

Mandatory tunables

Tunable Description Notes
FORCE If set to "enable", the process is forcefully killed. Default: disable.
DURATION Duration that you specify, through which chaos is injected into the target resource (in seconds). Default: 30s. For more information, go to duration of the chaos.

Optional tunables

Tunable Description Notes
PROCESS_IDS Process IDs of the target processes provided as comma-separated values. For example, 18375,25323,85657.
PROCESS_NAMES Comma separated list of process names to kill. For example, chrome.exe,firefox.exe.
RAMP_TIME Period to wait before and after injecting chaos (in seconds). For example, 30s. For more information, go to ramp time.

Parameters

Following YAML snippet illustrates the use of these input variables.

apiVersion: litmuchaos.io/v1alpha1
kind: MachineFault
metadata:
name: windows-process-kill
labels:
name: process-kill
spec:
infraType: windows
env:
- name: PROCESS_IDS
value: ""
- name: PROCESS_NAMES
value: ""
- name: FORCE
value: "disable"
- name: DURATION
value: "30s"
- name: RAMP_TIME
value: ""