Skip to content

Error Rates Under Load: The Failures Hidden by Successful Averages

Find failures that averages hide by segmenting load-test errors by operation, status, assertions, time, and user journey.

Mostly green all-samples error bar above an operation-by-time heatmap where search shows timeouts mid-run and payment turns red with assertion failures late in the ramp

An overall error rate can look healthy while a critical operation is failing. A fast request that succeeds thousands of times can dilute a smaller login, checkout, or write path. The average then answers a convenient question (how many samples failed in total) instead of the one a user or release owner needs answered: which behavior broke, for whom and when.

Treat error analysis as a labeling problem before treating it as a threshold problem. Preserve operation, status class, assertion outcome, journey step, actor, and time window. Then choose criteria that reflect the importance of each segment. A single total rate is still useful as an alarm, but it must not be the only evidence used to pass a performance test.

Separate transport from application success

HTTP status is one signal. A 200 response can carry an error object, an empty result, or an invalid state. A gRPC call can return a transport response whose application payload is unusable. Assertions should check the outcome the client depends on, not only that bytes arrived.

Name these outcomes distinctly. “HTTP 200” and “checkout assertion failed” should not be merged into one generic error label. Keep expected negative cases apart from unexpected failures. A deliberately rejected authorization request may prove a policy works. An unplanned rejection of a valid actor is a defect.

The load-test result anatomy is a good starting point for deciding which dimensions to keep. Add domain labels that help the owner find the broken behavior without reading every raw sample.

Build an error taxonomy

Start with broad classes: client-side setup failures, network and timeout failures, HTTP status classes, application assertions, and runner failures. Refine only where the distinction changes an action. A 429 may mean a quota is working as designed or a retry policy is too aggressive. A 5xx may come from one dependency, not the route itself. A timeout may occur at the client, proxy, or origin.

Record the operation and journey step beside the class. For a search-to-checkout journey, a failed search should not disappear inside a successful checkout count from other users. If the journey aborts after a failed step, preserve that abort reason so the result does not misreport later steps as “not requested.”

Use stable labels rather than embedding random identifiers or response text. Raw payloads can contain secrets or personal data and are rarely needed for an aggregate decision. A bounded error code and a link to approved diagnostics tell you more than an unfiltered body.

Read errors over time

Errors have shape. A rising timeout rate during ramp may identify a saturation boundary. A short burst at the start may indicate a cold dependency or a connection setup problem. An error rate that grows during a long run can point to leaks, queue accumulation, or exhausted data. Plot segments over the same timeline as offered load and resource signals.

Do not smooth away the moment a service became unhealthy. Aggregating the entire run can make a ten-minute outage look like a mild percentage. Preserve windows small enough to show transitions, then summarize them with a clear worst-window or sustained-window rule when a release decision needs one.

Compare errors with throughput. If the generator stopped delivering requests, a falling error count does not mean recovery. If throughput stays flat while concurrency rises and timeouts grow, the service may be queueing work. The comparison guide on load-test run variance covers the companion discipline of keeping runs comparable.

Watch retry amplification

Retries change the meaning of both errors and traffic. A first-attempt failure followed by a successful retry may appear as a successful journey while adding extra dependency work. Count attempts and completed operations separately. Label whether a response is original, retried, or recovered.

Test expected retry behavior with a controlled fault. Verify that backoff, attempt limits, idempotency, and circuit breaking keep the dependency from receiving an unbounded storm. A lower final error rate is not better if you paid for it with excessive latency or multiplied load.

Rate limits deserve the same care. A 429 can be the correct protective response in a quota test. It is a failure in a scenario whose contract requires a permitted request to complete. State the expected outcome in the scenario and report deviations from it. Never treat all non-2xx statuses as equivalent without naming the user impact.

Make the gate segment-aware

Define a total error ceiling for broad health, then define stricter criteria for critical labels. Include assertion failures and runner health. For example, a test might require no unexpected checkout assertion failures, zero generator errors, and a bounded rate of retryable search timeouts. The service owner sets the exact values. What matters is that the rule is explicit and tied to a behavior.

Keep exploratory and blocking tests separate. An exploratory run can surface a new error class without pretending a threshold already exists. Once the team understands the class, promote a stable assertion or operational criterion into a gate. This keeps gates explainable instead of turning every observation into a flaky blocker.

Investigate from the smallest broken slice

Keep a compact error ledger with the scenario. For each class, note the operation label, status or assertion, first-seen time, expectedness, owner, and evidence needed to close it. If the same response appears for several journeys, retain the individual labels so a shared dependency does not erase customer priority. Compare error counts with offered load and completed work, because a retry can raise request volume while the original operation stays unhealthy. During a rerun, change one variable at a time, such as concurrency, dependency mode, or fixture age. That lets the team tell whether a class is load-sensitive, data-sensitive, or present at the smoke baseline. The ledger should survive the dashboard view and remain understandable in a pull request. It keeps an application failure from turning into a single green average.

When a segment fails, reproduce that operation at the observed arrival shape. Preserve the payload, actor permissions, data state, and dependency conditions. If the focused test passes, compare the full journey’s concurrency, retries, and shared pools. If it fails, the smaller result should make the next owner and experiment clearer.

A useful incident note says: total rate, broken segment, first failure window, expected versus observed status, assertion, throughput, and next test. That compact record prevents the team from celebrating a good average while the important path remains unavailable.

For a concrete release review, take a run with a low total error rate but a cluster of failed payment assertions during the final ramp. First preserve that segment, confirm the generator delivered the intended payment traffic, and compare original attempts with retries. Then inspect dependency status and timeout windows for the payment label. The right outcome may be a focused follow-up, not a blanket rejection or approval. Either way, the decision follows the broken behavior instead of the diluted total.

Keep a small error dictionary next to the scenario. Define each label, whether it is expected, which owner responds, and what evidence closes the investigation. Update the dictionary when a new status or assertion class appears. Unfamiliar failures then teach the team something without weakening the gate, and two teams cannot use the same word (“error”) for different operational outcomes.