Constant-VU's error cant go above 40 vus

Hey, my options to run test look like this:

  concurrentTests: {
    scenarios: {
      test_suite_flow2: {
        executor: 'constant-vus',
        gracefulStop: '30s',
        exec: 'testSuiteFlow',
        vus: 30,
        duration: '5m',
      }
    },
    thresholds: {
      http_req_duration: [
        {
          threshold: 'avg<2000', // if http req duration is avg over 2000, test aborts
          abortOnFail: false // abort test if thresholds breached use true
          // delayAbortEval: '5s' // delay of abort so data can be gathered in metrics
        }
      ],
      http_req_failed: [
        {
          threshold: 'rate<0.50', // During the whole test execution, the error rate must be lower than 1%.
          abortOnFail: false // abort test if thresholds breached use true
          // delayAbortEval: '5s' // delay of abort so data can be gathered in metrics
        }
      ]
    }
  }

Right now you see vus:30, but if I put vus:40 or more i get instantly error:

ERRO[0002] Exception raised in test "API Calls". Failing the test and continuing. 
TypeError: Cannot read property '0' of undefined  source=console

How can I debug this ? is there some sort of limit for this executor to have specific amount of VU’s ?

Hi @sillymoomoo try console response by using check if status response is 200 form API calls.

2 Likes

hi @Elibarick

Yeah i did solve it forgot to update post. But this was exactly problem that API had limitations set how many concurrently requests could be sent, thanks for response :slight_smile:

2 Likes