An image-processing worker queue at launch
A media service creates 32 original image jobs per second and adds about 10% retries. A worker slot is held for 950 ms in its p95 planning scenario.
Jump to resultsInputs
Results
Runs in your browser- In flight at p95 duration
- 33.44requests
- Pool utilization at p95
- 83.6%
- Original traffic at saturation
- 38.278req/s
The p95 estimate exceeds the target utilization. Check queue wait and retry load.
| Effective arrival rate | 35.2 req/s |
|---|---|
| In flight at p50 duration | 16.896 requests |
| In flight at p99 duration | 80.96 requests |
| Slots at 80% target | 42 slots |
| Unused p95 pool share | 16.4 % |
| Illustrative queue multiplier | 6.098 × |
What to try
Forty workers exceed the 80% target in the p95 case. Compare a dedicated pool for large images with the 42 slots needed if jobs continue to share the same workers.
How the estimate works
In-flight requests L = arrival rate λ × time in system W
The effective arrival rate includes retries. The three concurrency values are separate what-if calculations that use p50, p95, and p99 as fixed durations. Little’s Law itself connects steady-state averages, so these estimates have no concurrency percentile guarantee.
Pool utilization uses the p95 planning duration. The saturation ceiling is the original request rate that would keep every slot occupied at that fixed duration. Slots needed at a target utilization are rounded up.
The curve is a normalized M/M/1 illustration, 1 ÷ (1 − utilization). Real multi-worker queues, burstiness, and load-dependent latency can shift the knee. The curve clamps the vertical scale at 10× for readability.
Frequently asked questions
Should time waiting in the image queue count as busy worker time?
Use time after a worker takes the job when sizing workers. Include queue waiting only when estimating the number of jobs in the entire system.
How does image-size variance affect a 42-worker plan?
Large jobs can hold slots much longer and form bursts. Test the plan against representative size classes and measure queue delay separately.