I have situation where I need to make constant request for a certain period of time, say 5 requests in every 1 second for 30 seconds. I used the constant-arrival-rate to achieve this but I don’t see the expectations are met while using it. I am expecting 150 requests to be made when the test run finishes but I see less than 150 requests are made. I tried increasing the VUs and still the total requests made does not reach upto 150. Can someone help me out on this? Am I missing something?
scenarios: {
constant_request_rate: {
executor: 'constant-arrival-rate',
rate: 5,
timeUnit: '1s', // 5 iterations per second, i.e. 5 RPS
duration: '30s',
preAllocatedVUs: 1, // how large the initial pool of VUs would be
maxVUs: 10, // if the preAllocatedVUs are not enough, we can initialize more
}}