https://github.com/garugaru/flaw
CLI for injecting failures on api calls for local chaos engineering
https://github.com/garugaru/flaw
chaos chaos-engineering failure-injection
Last synced: 4 months ago
JSON representation
CLI for injecting failures on api calls for local chaos engineering
- Host: GitHub
- URL: https://github.com/garugaru/flaw
- Owner: GaruGaru
- License: mit
- Created: 2019-04-01T12:55:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T13:26:32.000Z (over 6 years ago)
- Last Synced: 2025-03-24T15:13:56.349Z (7 months ago)
- Topics: chaos, chaos-engineering, failure-injection
- Language: Go
- Size: 210 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flaw
## Inject failures on api calls for local chaos engineering
[](https://travis-ci.org/GaruGaru/flaw)
[](https://goreportcard.com/report/github.com/GaruGaru/flaw)

Flaw works as a proxy trought an external http service injecting failures
randomly
### Proxy
```bash
flaw --host=https://jsonplaceholder.typicode.com/users
```### Proxy injecting 50% of http (status 500) failures
```bash
flaw --run=perc --percentage=50 --host=https://jsonplaceholder.typicode.com/users
```### Proxy injecting 30% of http rate limit (status 429) failures
```bash
flaw --status-code=429 --run=perc --percentage=30 --host=https://jsonplaceholder.typicode.com/users
```### Proxy injecting 30% of http failures + 1s latency
```bash
flaw --latency=1000 --run=perc --percentage=30 --host=https://jsonplaceholder.typicode.com/users
```### Installation
```bash
go get -u github.com/GaruGaru/flaw
```