Simulate Process Faults
This document describes how to use Chaosd to simulate process faults. The process faults use the Golang interface of the kill
command to simulate the scenarios that the process is killed or stopped. You can create experiments either in the command-line mode or service mode.
Create experiments using the command-line mode
Before creating an experiment, you can run the following command to see the process fault types that are supported by Chaosd:
chaosd attack process -h
The result is as follows:
Process attack related commands
Usage:
chaosd attack process [command]
Available Commands:
kill kill process, default signal 9
stop stop process, this action will stop the process with SIGSTOP
Flags:
-h, --help help for process
Global Flags:
--log-level string the log level of chaosd, the value can be 'debug', 'info', 'warn' and 'error'
Use "chaosd attack process [command] --help" for more information about a command.
Currently, Chaosd supports simulating that a process is killed or stopped.