Chaos engineering final ToxiproxyContainer.ContainerProxy proxy = toxiproxy.getProxy(redis, 6379); proxy.toxics() .latency(“latency”, ToxicDirection.DOWNSTREAM, 1_100) .setJitter(100); • • • • • •
bandwidth - Limit a connection to a maximum number of kilobytes per second. latency - Add a delay to all data going through the proxy. The delay is equal to latency +/- jitter. slicer - Slices TCP data up into small bits, optionally adding a delay between each sliced “packet”. slowClose - Delay the TCP socket from closing until delay milliseconds has elapsed. timeout - Stops all data from getting through, and closes the connection after timeout limitData - Closes connection when transmitted data exceeded limit.