Skip to content

Request Generation

Control the request generation process

Control the request generation process by setting the number of queries/duration of the load test, the number of queries sent per second during the test, and the number of parallel connections used to send requests.


Follow the quick start tutorial. In the step where you run the experiment, replace the iter8 run command with either of the following commands.

Number of queries

Set the number of requests sent during the load-test to 200, the number of requests per second to 10, and the number of parallel connections used to send the requests to 5, as follows.

iter8 run --set url=https://example.com \
          --set SLOs.error-rate=0 \
          --set SLOs.mean-latency=50 \
          --set SLOs.p90=100 \
          --set SLOs.p'97\.5'=200 \
          --set numQueries=200 \
          --set qps=10 \
          --set connections=5

Duration

Set the duration of the load test to 20 sec, the number of requests per second to 10, and the number of parallel connections used to send the requests to 5, as follows. The duration value may be any Go duration string.

iter8 run --set url=https://example.com \
          --set SLOs.error-rate=0 \
          --set SLOs.mean-latency=50 \
          --set SLOs.p90=100 \
          --set SLOs.p'97\.5'=200 \
          --set duration=20s \
          --set qps=10 \
          --set connections=5

When you set the numQueries and qps parameters, the duration of the load test is automatically determined. Similarly, when you set the duration and qps parameters, the number of requests is automatically determined. If you set both numQueries and duration parameters, the latter will be ignored.

Back to top