load_pattern section

load_pattern:
  - load_pattern_type
      [parameters]

* If a root level load_pattern is not specified then each endpoint must specify its own load_pattern.

The load_pattern section defines the "shape" that the generated traffic will take over the course of the test. Individual endpoints can choose to specify their own load_pattern (see the endpoints section).

load_pattern is an array of load_pattern_types specifying how generated traffic for a segment of the test will scale up, down or remain steady. Currently the only load_pattern_type is linear.

Example:

load_pattern:
  - linear:
      to: 100%
      over: 5m
  - linear:
      to: 100%
      over: 2m

linear

The linear load_pattern_type allows generated traffic to increase or decrease linearly. There are three parameters which can be specified for each linear segment:

  • from Optional - A template indicating the starting point to scale from, specified as a percentage. Defaults to 0% if the current segment is the first entry in load_pattern, or the to value of the previous segment otherwise. Only variables defined in the vars section can be interopolated.

    A valid percentage is any unsigned number, integer or decimal, immediately followed by the percent symbol (%). Percentages can exceed 100% but cannot be negative. For example 15.25% or 150%.

  • to - A template indicating the end point to scale to, specified as a percentage. Only variables defined in the vars section can be interopolated.

  • over - The duration for how long the current segment should last.