Commit 560b635
Merge #155589
155589: roachprod: add chaos CLI for failure injection r=DarrylWong a=shailendra-patel
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 and asymmetric network splits
- `chaos network-latency`: artificial network delay injection
Example usage:
```shell
roachprod chaos network-partition $CLUSTER --src 1 --dest 2,3 --type asymmetric
```
Epic: none
Release note: None
Fixes: #140634
Co-authored-by: Shailendra Patel <[email protected]>File tree
5 files changed
+670
-0
lines changed- pkg
- cmd/roachprod/cli
- roachprod/failureinjection/failures
5 files changed
+670
-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