Throughput as Worker Count Changes

Adding workers can increase capacity, but shared resources and coordination can limit the added throughput.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a simplified workload
  2. Track queue and latency too
  3. Read a throughput curve and its costs together
  4. Track latency when throughput levels off

Trace a simplified workload

With independent tasks taking one second each, four workers can ideally finish about four per second under continuous demand. Waiting on a shared writer may lower that rate. Throughput measured from results defines the observation.

Track queue and latency too

A higher completion rate can coexist with slower individual jobs under a loaded system. Queue delay distinguishes part of that cost.[1]

Read a throughput curve and its costs together

A workload completes forty jobs per second with one worker, seventy with two, and seventy-five with four. The gains diminish, suggesting a shared constraint or increased overhead. A raw worker count alone cannot locate the bottleneck. See speedup and efficiency.

Workers 1 → 40 completions/s
Workers 2 → 70/s
Workers 4 → 75/s
Compare queue delay, errors and system resource use

Track latency when throughput levels off

Further workers can add contention and make some jobs wait longer. Measure several loads under an identical job mix, including below saturation. Count successful completions separately from rejected admissions.

References

  1. Google, Site Reliability Engineering ↩