toxics: Toxics for use with toxiproxy

Description Usage Arguments

Description

Helper functions for creating toxics for use with toxiproxy. These can be passed as the first argument to $add on a toxic proxy in lieu of the type and attributes arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
latency(latency, jitter = 0)

bandwidth(rate)

slow_close(delay)

timeout(timeout)

slicer(average_size, size_variation, delay = 0)

limit_data(bytes)

Arguments

latency

Latency in milliseconds

jitter

Time in milliseconds

rate

Rate in KB per second

delay

Time in milliseconds

timeout

Time in milliseconds

average_size

Size in bytes of an average packet

size_variation

Variation in bytes of an average packet (should be smaller than average_size)

bytes

The number of bytes it should transmit before connection is closed


richfitz/toxiproxyr documentation built on May 27, 2019, 8:43 a.m.