Serving mixed workloads on an inference cluster 00:00:01 A long document joins a short queue A long document reaches the cluster while several short conversations are waiting for their next token. Zed separates building the prompt state from extending each answer, then discovers the state itself has to travel between workers. Prefill computes representations for the prompt and builds key/value state. Decode repeatedly generates a token while reading cached state from previous positions. In a shared pool, a large prefill can compete with ongoing chats. Separating the stages permits independent sizing and scheduling, but the decode pool must receive the right state before it can safely proceed. A cache payload of two hundred fifty-six mebibytes sent over eight gibibytes per second needs just over thirty-one milliseconds for the bytes alone. Scheduling, queuing and validating a compatible cache can add time to that lower bound. 00:00:51 Measure both clocks at the same load Group similar work, cap prefill chunks and reserve decode capacity for active users. In a split deployment the router also needs to account for cache locality and transfer bandwidth. A fast prefill worker can still feed an overloaded decoder. A 256 mebibytes handoff on an effective 8 gibibytes/s link has a 31.25 milliseconds payload-transfer lower bound before synchronization and queueing. Throughput counts tokens or requests completed. Goodput counts successful requests meeting the declared service targets per unit time. Examine short and long workloads separately and include cancellations in reporting. Of 100 admitted requests in ten seconds, 80 finish, but only 60 meet both timing limits. This interval delivers six on-target completions per second. Admission, ownership and transfer completion are correctness boundaries. An allocator must not expose a previous tenant’s state when work is cancelled or a transfer fails. Cloudflare’s 2026 report documents cross-request exposure in one hosted model and motivates fail-closed handoff verification. In a synthetic test with two labeled requests, cancel the first and confirm the second either receives its own complete state or fails cleanly. Disaggregation is a workload choice. A slow interconnect can cost more than the queueing it saves. Track queue delay, time to first token, gaps during decoding, and the share of requests meeting both latency objectives. Capacity needs explicit bounds for active tokens, resident key and value memory and cancellation. Keep each cache allocation tied to a request and tenant through its entire lifetime. 00:02:38 Hand off a valid cache Reserve capacity for prompt tokens, concurrent chats and the expected decode state. Queue or decline a request that cannot fit its declared limits. The worker computes the prompt and records the eligible destination and completed state size. Match request identity, allocation and completion. Batch ready sequences and monitor pauses experienced by existing chats. Split transfer time from queueing and token generation. Compare a shared pool and disaggregated deployment under the same traffic mix. At 256 mebibytes and 8 gibibytes/s, payload transmission alone takes 0.03125 seconds. 00:03:23 When does more throughput help the user? Split pools reduce prefill delay but repeatedly miss the inter-token target. What comparison should decide deployment? A faster first stage can move the bottleneck into transfer or decode and reduce the quality experienced by users. Count requests meeting both their first-token and between-token targets. Faster aggregate decoding can coexist with more people missing the service objective, especially when a long prefill blocks a short conversation.