Delayer

Waits for a certain amount of time defined by a distribution of milliseconds ramp.

You define a list of key (milliseconds) / value (probability) pairs. Those are the probability of having a dalay below that “key” milliseconds.

Example:

Key Val
0 0.05
50 0.20
150 0.0
300 0.25
500 0.5

With the above values, 5% of request will have no delay at all, a 20% will be between 0 and 50 ms of delay, there will be no requests with a dealay between 50 and 150 ms, and then there will be a 25% of requests with a delay between 150 and 300ms, and the rest of requests will have a delay between 300ms and 500ms.

{
    "name": "delayer",
    "config": {
        "delay_millis_distribution": [
            {"key": 0, "val": 0.05},
            {"key": 10, "val": 0.2},
            {"key": 50, "val": 0.0},
            {"key": 100, "val": 0.5},
            {"key": 200, "val": 0.0},
            {"key": 700, "val": 0.25}
        ],
        "seed": 1
    }
}