Search API headroom at peak traffic
A search service handles 2,400 original requests per second with 5% extra attempts. It has a 200-slot pool and measured p95 residence time of 75 ms.
Jump to resultsInputs
Results
Runs in your browser- In flight at p95 duration
- 189requests
- Pool utilization at p95
- 94.5%
- Original traffic at saturation
- 2,539.683req/s
The p95 estimate exceeds the target utilization. Check queue wait and retry load.
| Effective arrival rate | 2,520 req/s |
|---|---|
| In flight at p50 duration | 80.64 requests |
| In flight at p99 duration | 428.4 requests |
| Slots at 70% target | 270 slots |
| Unused p95 pool share | 5.5 % |
| Illustrative queue multiplier | 18.182 × |
What to try
The p95 plan has only 5.5% slot headroom at current traffic. Compare a lower p95 from the query optimization with the pool size the existing service would need.
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
Why does the search p99 scenario exceed the whole pool?
At the same arrival rate, applying a 170 ms duration to every attempt produces much more overlap. The scenario is a stress comparison rather than an observed percentile.
Should every search query share one residence-time distribution?
Break out cheap and expensive request classes if they share slots unevenly. A single aggregate percentile can mask the heavy class.