test-chaos
Introduce controlled failures to test system resilience. Kill processes, cut network, fill disk. Use when testing fault tolerance, disaster recovery, or resilience.
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 1
01 前言 Front Matter
- name
- test-chaos
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- Introduce controlled failures to test system resilience. Kill processes, cut network, fill disk. Use when testing fault tolerance, disaster recovery, or resilience.
03 SKILL.md 正文
Test Chaos
Resilience testing.
When To Use
- Fault tolerance
- Disaster recovery
- System hardening
Chaos Experiments
1. Kill Process
kill -9 <pid>
2. Cut Network
iptables -A INPUT -j DROP
3. Fill Disk
dd if=/dev/zero of=/full
4. Latency
tc qdisc add dev eth0 root netem delay 5000ms
Tools
| Tool | Use |
|---|---|
| Chaos Monkey | Netflix chaos |
| Litmus | Kubernetes chaos |
| Pumba | Docker chaos |
| Gremlin | Chaos as service |
Output
## Chaos Test
| Experiment | Result | Recovery |
|------------|--------|---------|
| Kill DB | [FAIL→RECOVERED] | 5s |
| Net cut | [FAIL→RECOVERED] | 2s |
| Disk full | [HANDLED] | N/A |
Role: Chaos Engineer Input: Experiment Output: Resilience
04 同仓库更多 Skills
yaml
Data serialization.
vite
Frontend build tool.
typescript
Typed JavaScript.
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.