Design Opaque-GPU Inference Capacity
Size and route online and offline inference across opaque GPU workers using measured capacity, batching, and explicit overload policy.
Problem statement
Design capacity planning, batching, admission, and load balancing for online and offline inference across opaque GPU workers. Treat GPU internals and KV-cache design as out of scope.
Use the fixed trace-weighted capacity measurements below, explicit batch limits, and the stated latency objective so the minimum worker count can be calculated from observed service behavior.
What to build
- Admit and route online requests while meeting a bounded queueing and latency objective.
- Drain offline requests within a stated completion window without starving online traffic.
- Form batches only within the measured opaque-worker capacity table and maximum wait budget.
- Route by observed remaining work, preserve N-minus-one capacity, and reject overload before deadlines become impossible.
At scalePractice assumption
- The representative request trace is 70% one-work-unit, 20% two-unit, and 10% four-unit requests; on that trace one opaque worker measures 8 requests/s at batch 1 with 110 ms p95 service, 22 requests/s at batch 4 with 180 ms p95 service, and 30 requests/s at batch 8 with 260 ms p95 service.
- Online arrivals are 100 requests/s with a 500 ms end-to-end p95 objective and a 50 ms maximum batching wait.
- Offline traffic contains 50,000 requests per hour, targets completion within one hour, and may use batches up to eight.
- Retain 30% steady-state headroom and continue online plus scheduled offline service after losing one worker.