Chaosd Introduction
Chaosd is a Chaos Engineering testing tool provided by Chaos Mesh. You need to download and deploy it separately (see ). It is used to inject faults into physical machine environments and also recover faults.
Chaosd has the following core strengths:
- Various fault types: Chaosd provides various fault types to be injected into physical machines at different levels, including process, network, pressure, disk, host, etc. More fault types are to be added.
- Multiple work modes: Chaosd can be used both as a command-line tool and as a service to meet the needs of different scenarios.
You can use Chaosd to simulate the following fault types:
- Process: Injects faults into the processes. Operations such as killing the process or stopping the process are supported.
- Network: Injects faults into the network of physical machines. Operations such as increasing network latency, losing packets, and corrupting packets are supported.
- Pressure: Injects pressure on the CPU or memory of the physical machines.
- Host: Injects faults into the physical machine. Operations such as shutdown the physical machine are supported.
Your glibc version must be v2.17 or later versions.
Set the version of Chaosd to be downloaded as the environment variable. For example, v1.0.0:
To view all released versions of Chaosd, refer to releases.
Download Chaosd:
Unzip the Chaosd file and move it to the directory:
Add the Chaosd directory to the environment variable:
- Service mode: Run Chaosd as a service in the background, to inject and recover faults by sending HTTP requests.