Skip to content

Commit

Permalink
fix: change smoke workload and thresholds
Browse files Browse the repository at this point in the history
Signed-off-by: David Poltorak <[email protected]>
  • Loading branch information
davepoltorak committed Sep 29, 2023
1 parent 23c5ddf commit 4c43d06
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import { Scenario, Threshold } from "k6/options";
export const defaultScenarios: { [name: string]: Scenario } = {
smoke: {
// a simple test to ensure performance tests work and requests don't fail
executor: "shared-iterations",
vus: 1,
iterations: 1,
// duration: "2m",
executor: "constant-vus",
vus: 3,
duration: "10s",
tags: { scenario_label: __ENV.SCENARIO_LABEL || "defaultScenarioLabel" }, // add label for filtering in observability platform
},
};
Expand All @@ -22,8 +21,8 @@ export const defaultThresholds: { [name: string]: Threshold[] } = {
],
http_req_duration: [
// fail if any requests take longer than 500ms on smoke test
{ threshold: "p(95)<500", abortOnFail: true }, // 95% of requests should complete within 500ms
{ threshold: "p(99)<1500", abortOnFail: true }, // 99% of requests should complete within 1500ms
{ threshold: "p(95)<1000", abortOnFail: true }, // 95% of requests should complete within 500ms
{ threshold: "p(99)<2000", abortOnFail: true }, // 99% of requests should complete within 1500ms
],
checks: ["rate==1"], // fail if any checks fail (the checks are defined in test code which is executed)
};

0 comments on commit 4c43d06

Please sign in to comment.