Skip to content
RED SAGSkills
medium10 pts · first answer countsperformance-testingk6thresholds

Stopping a test early on failure

In a 2-hour stress test, you want k6 to stop as soon as the error rate passes 10%, but not during the first minute of noise. Which setting helps?

thresholds: {
  http_req_failed: [{ threshold: 'rate<0.10', abortOnFail: true, delayAbortEval: '1m' }],
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions