项目作者: ijoyce

项目描述 :
A layer 7 fault injection proxy server.
高级语言: Rust
项目地址: git://github.com/ijoyce/trouble-maker.git
创建时间: 2019-07-10T14:49:30Z
项目社区:https://github.com/ijoyce/trouble-maker

开源协议:MIT License

下载


trouble-maker

A layer 7 fault injection proxy server.

CI

Supported Protocols

  • HTTP/1.1
  • More in progress

Building

$ cargo build —release

Running

RUST_LOG=info cargo run —release

Failure Types

  • Error
  • Delay
  • Timeout

Configuration

A basic example

This will proxy requests from 127.0.0.1:3001 to 127.0.0.1:8080 while 50% of the time adding a delay for 300ms and returning an HTTP 500 response.

  1. listener_address = "127.0.0.1:3001"
  2. proxy_address = "127.0.0.1:8080"
  3. metrics_path = "/metrics"
  4. max_concurrent_requests = 5000
  5. scenarios = [
  6. { path = "/.*", failure_type = "Error", frequency = 0.5, delay = 300 },
  7. ]

An example configuration file can be found here.

Resources and Inspiration