Skip to content

roachprod/failure-injection: CLI support for FI Library #140634

@DarrylWong

Description

@DarrylWong

Once initial support for a failure injection library has been added as described by #138970, CLI support should be added as well. Such a CLI tool should allow for engineers to inject failures onto ad hoc roachprod clusters for testing purposes. This CLI should take advantage of the high level nature of the failure injection library, where the engineer only needs to know the type of failure they want to inject and not the implementation details of the exact commands being run.

Initial support should consist of the user prompting a type of failure along with any potential args, e.g.:

failure-injection network-partition $CLUSTER --asymmetric --throughput=1mpbs

Further down the line, when work for generating failure step YAML files has been completed, the CLI can leverage that to make running repeatable and more visually parsable failures easier, e.g.:

failure-injection network-partition $CLUSTER -f network-partition.YAML

Jira issue: CRDB-47275

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions