# GoodServe: Globally-coordinated Routing of Agentic LLM Inferences for High Goodput

DevFeed: [GoodServe: Globally-coordinated Routing of Agentic LLM Inferences for High Goodput](<https://devfeed.tech/articles/goodserve-globally-coordinated-routing-of-agentic-llm-inferences-for-high-goodput-113756.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.16867>)

Author: Boxiao Du, Boning Huangfu, Yizhou Luo, Chen Chen, Zijun Li, Minchen Yu, Xiaoyi Fan, Minyi Guo

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [black](<https://devfeed.tech/tags/black.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [estimator](<https://devfeed.tech/tags/estimator.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [ids](<https://devfeed.tech/tags/ids.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [llm](<https://devfeed.tech/tags/llm.md>), [migration](<https://devfeed.tech/tags/migration.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [policy](<https://devfeed.tech/tags/policy.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [routing](<https://devfeed.tech/tags/routing.md>), [routing-system](<https://devfeed.tech/tags/routing-system.md>), [slo](<https://devfeed.tech/tags/slo.md>), [system](<https://devfeed.tech/tags/system.md>)

## AI overview

GoodServe routes agentic LLM requests to maximize the number completed before their deadlines. It predicts output lengths with a task-gated mixture-of-experts model and estimates queue delays and token speeds with an EMA-smoothed black-box estimator that accounts for prefix-cache reuse. Its just-enough policy selects the weakest GPU expected to meet a request's deadline, rejects requests unlikely to finish on time, and periodically migrates endangered requests using token IDs, reported to cost 7-15 times less than KV-cache transfer. On a four-GPU heterogeneous testbed with three agentic benchmarks, it achieved the highest goodput at all evaluated SLO levels, beating the best existing router by up to 31.0%. In simulations with 512 instances, reported routing overhead was 5 ms per request at 10,000 requests per second.

## Source excerpt

arXiv:2605.16867v2 Announce Type: replace Abstract: Agentic applications consume LLM inferences as complete outputs: a code patch or database query is useful only after its last token arrives. Their performance is thus measured by end-to-end deadline satisfaction and goodput, the number of inferences completed within their deadlines. In heterogeneous GPU pools, existing greedy routers favor the fastest or least-loaded instance, often wasting powerful GPUs on requests that could meet their deadlines on weaker ones. Maximizing goodput instead requires globally coordinated routing, informed by uncertain output lengths and dynamic instance performance. We present GoodServe, a goodput-oriented routing system that addresses these challenges through a predict-and-rectify design. A task-gated mixture-of-experts predictor estimates request output lengths, while an EMA-smoothed black-box estimator tracks queuing delays and per-token speeds, accounting for prefix-cache reuse. A just-enough policy routes each request to the weakest instance capable of meeting its deadline and rejects requests that cannot finish on time. Periodic risk checks trigger migration of endangered requests using token IDs, at 7-15 times lower cost than KV-cache transfer. On a four-GPU heterogeneous testbed with three agentic benchmarks, GoodServe achieves the highest goodput across all evaluated SLO levels, improving over the best existing router by up to 31.0%. Its routing overhead remains 5 ms per request at 10,000 requests per second across 512 simulated instances.