Skip to content

Find the throughput bottleneck

Use traffic and queue data to identify the binding capacity limit and isolate interactive work.

Scenario

A museum indexes metadata overnight while visitors ask about exhibits. The first large collection import doubles queue wait for live questions. The dashboard still shows plenty of requests per minute.

Explanation

Measure requests, input tokens and output tokens separately. A handful of long prompts can exhaust input capacity while request counters look healthy. Compare utilization with queue age, arrival rate and completion rate by tenant and job class. Queue age can reveal a service problem before the system drops work.

Give live traffic reserved capacity or a separate queue with an enforceable token budget. Apply per-tenant quotas and backpressure at admission, before large backlogs consume shared capacity. Limit concurrency and ramp new traffic gradually. Send eligible work to batch when its delivery window can accommodate asynchronous processing. Confirm the batch feature and limits for the specific deployment.

Worked example

In the museum's synthetic snapshot, live and offline work use 92 of 100 input units per minute, 18 of 100 request units and 22 of 100 output units. The import consists of long source descriptions. When live demand needs 20 more input units, reserving input capacity and moving the deferrable import to batch protects live traffic. Raising a request count limit leaves the binding budget in place.