Commit 85ccefe
committed
roachprod: add chaos CLI for failure injection
This commit introduces the `roachprod chaos` command tree, providing
CLI support for the failure injection library to test cluster resilience
under various failure scenarios.
Changes:
- Add `chaos` root command with global flags for controlling failure
duration and cleanup behavior
- Implement network failure commands:
- `chaos network partition bidirectional`: complete network splits
- `chaos network partition asymmetric`: directional traffic dropping
- `chaos network latency`: artificial network delay injection
Example usage:
roachprod chaos network partition asymmetric mycluster \
--src 1,2 --dest 3,4 --direction incoming \
--wait-before-cleanup 10m
Epic: none
Release note: None1 parent 6816c43 commit 85ccefe
File tree
5 files changed
+743
-0
lines changed- pkg
- cmd/roachprod/cli
- roachprod/failureinjection/failures
5 files changed
+743
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments