Evaluating Tail Latency at Different Load Levels

A latency distribution can shift under load as queues, shared resources, and arrival patterns change.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a burst
  2. Report comparable observations
  3. Measure the delays at several arrival rates
  4. Avoid hiding timed-out work

Trace a burst

At low load a worker can start each job immediately. A burst creates a wait for later arrivals even when processing time per job is unchanged. See service arrival and throughput.

Report comparable observations

Use the same timing boundary at each level and record the workload, count, and percentile method. Typical and slow results describe those summaries.[1]

Measure the delays at several arrival rates

At low load, worker execution may dominate response time. Near capacity, short bursts can add long waits to some requests. Report a high percentile together with completed throughput and errors. See latency with queue delay.

Light load: small queue
Moderate load: occasional waits
Near capacity: tails may grow while service time stays similar
Record each load and sample size

Avoid hiding timed-out work

Reporting only completed fast requests can make an overloaded service look healthier. Decide how to account for rejection, timeout and in-flight work. Keep the same request mix for each testing level.

References

  1. Google, Site Reliability Engineering ↩