原文 | 翻译 |
---|---|
Chaosd introduction | Chaosd介绍 |
Chaosd is a Chaos Engineering testing tool provided by Chaos Mesh. You need to download and deploy it separately (see Download and deploy). It is used to inject faults into physical machine environments and also recover faults. | Chaosd是由CM提供的一个混沌引擎测试工具,你需要单独的下载和部署它(参见下载和部署).它用来向屋里机器环境注入错误和恢复错误. |
Chaosd has the following core strengths: | Chaosd有以下核心优势 |
Easy-to-use: You only need to execute simple commands in Chaosd to create and manage Chaos experiments. | 易于使用: 你只需要在Chaosd中执行简单指令就能创建和管理混沌实验 |
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. | 多样错误类型: Chaosd提供向物理机注入不同级别的多种错误,包括进程,网络,压力,硬盘,主机等,更多的错误将被添加 |
Multiple work modes: Chaosd can be used both as a command-line tool and as a service to meet the needs of different scenarios. | 多种工作模式: Chaosd能以命令行和服务林总方式使用来适应不同场景 |
Supported fault types | 支持的错误类型 |
You can use Chaosd to simulate the following fault types: | 你可以使用Chaosd来模拟以下错误类型 |
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. | 压力向物理机CPU和内存注入压力 |
Disk: Injects faults into disks of the physical machines. Operations such as increasing disk load of reads and writes, and filling disks are supported. | **磁盘:**向物理机磁盘注入错误.支持像增加磁盘读写负载,填充磁盘 |
Host: Injects faults into the physical machine. Operations such as shutdown the physical machine are supported. | 主机:,向物理机注入错误.支持像关闭物理机这样的操作 |
For details about the introduction and usage of each fault type, refer to the related documentation. | 参见相关文档获得各种错误类型说明和使用的细节 |
Operating environment | 操作环境 |
Your glibc version must be v2.17 or later versions. | 你的glibc必须是v2.17或更高版本 |
Download and deploy | 下载和部署 |
1 Set the version of Chaosd to be downloaded as the environment variable. For example, v1.0.0: export CHAOSD_VERSION=v1.0.0 To view all released versions of Chaosd, refer to releases. To download the latest version (not stable), use latest: export CHAOSD_VERSION=latest | 为将下载的Chaosd的版本设置为环境变量,例如v1.0.0 export CHAOSD_VERSION=v1.0.0 参见发布查看所有Chaosd发布版本 使用latest来下载最新版本(不稳定) export CHAOSD_VERSION=latest |
2 Download Chaosd: curl -fsSL -o chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz https://mirrors.chaos-mesh.org/chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz | 2 下载Chaosd curl -fsSL -o chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz https://mirrors.chaos-mesh.org/chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz |
3: Unzip the Chaosd file and move it to the /usr/local directory: tar zxvf chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz && sudo mv chaosd-$CHAOSD_VERSION-linux-amd64 /usr/local/ | 3 解压Chaosd文件并移动到 /usr/local文件夹 tar zxvf chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz && sudo mv chaosd-$CHAOSD_VERSION-linux-amd64 /usr/local/ |
4: Add the Chaosd directory to the PATH environment variable: export PATH=/usr/local/chaosd-$CHAOSD_VERSION-linux-amd64:$PATH | **4:**添加CHaosd文件夹到PATH环境变量: export PATH=/usr/local/chaosd-$CHAOSD_VERSION-linux-amd64:$PATH |
Work modes | 工作模式 |
You can use Chaosd in the following modes: Command-line mode: Run Chaosd directly as a command-line tool to inject and recover faults. Service mode: Run Chaosd as a service in the background, to inject and recover faults by sending HTTP requests. | 你可以以以下模式使用Chaosd 命令行模式: 直接以命令行工具运行Chaosd来注入和恢复错误 **服务模式:**以后台运行的服务来运行Chaosd,通过发送HTTP请求来注入和恢复错误 |