latency: Latency toxic

Description Usage Arguments

View source: R/toxics.R

Description

Latency toxic. Add a delay to all data going through the proxy. The delay is equal to latency +/- jitter (the toxiproxy docs are vague on what distribution is used for this but I would guess that times will be uniformly distributed on this interval).

Usage

1
2
latency(latency, jitter = 0, direction = NULL, probability = NULL,
  name = NULL)

Arguments

latency

Latency, in milliseconds (1000 = 1s)

jitter

Variation, in milliseconds

direction

The direction that the toxic should apply to; either "upstream" or "downstream". The default (as NULL) will be interepreted by the toxiproxy server as "downstream".

probability

The probability of a toxic being applied, between 0 and 1 (1 corresponding to a 100% of the toxic being applied). The default (as NULL) will be interpreted as the toxiproxy server as always applying the toxic. Note that this is the chance of the toxc being applied at the point where add is called; if applied the toxic will affect every transmission.

name

An optional name for the toxic


richfitz/toxiproxyr documentation built on May 25, 2017, 3:10 a.m.